?
Current Path : /usr/share/emacs/24.3/lisp/eshell/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/eshell/esh-io.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:54 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/eshell/esh-io.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\312\313\304\314\315\316\317\320\310\303& \210\312\321\322\323\317\324\310\303&\210\312\325\326\327\317\324\310\303&\210\312\330\331\332\317\324\310\303&\210\312\333\304\334\317\335\310\303&\210\312\336\337\340\317\324\310\303&\210\312\341\342\343\317\344\310\303&\210\345\341\346\347#\207" [provide esh-io custom-declare-group eshell-io nil "Eshell's I/O management code provides a scheme for treating many\ndifferent kinds of objects -- symbols, files, buffers, etc. -- as\nthough they were files." :tag "I/O management" :group eshell custom-declare-variable eshell-io-load-hook "A hook that gets run when `eshell-io' is loaded." :version "24.1" :type hook eshell-number-of-handles 3 "The number of file handles that eshell supports.\nCurrently this is standard input, output and error. But even all of\nthese Emacs does not currently support with asynchronous processes\n(which is what eshell uses so that you can continue doing work in\nother buffers) ." integer eshell-output-handle 1 "The index of the standard output handle." eshell-error-handle 2 "The index of the standard error handle." eshell-buffer-shorthand "If non-nil, a symbol name can be used for a buffer in redirection.\nIf nil, redirecting to a buffer requires buffer name syntax. If this\nvariable is set, redirection directly to Lisp symbols will be\nimpossible.\n\nExample:\n\n echo hello > '*scratch* ; works if `eshell-buffer-shorthand' is t\n echo hello > #<buffer *scratch*> ; always works" boolean eshell-print-queue-size 5 "The size of the print queue, for doing buffered printing.\nThis is basically a speed enhancement, to avoid blocking the Lisp code\nfrom executing while Emacs is redisplaying." eshell-virtual-targets '(("/dev/eshell" eshell-interactive-print nil) ("/dev/kill" (lambda (mode) (if (eq mode 'overwrite) (kill-new #1="")) 'eshell-kill-append) t) ("/dev/clip" (lambda (mode) (if (eq mode 'overwrite) (let ((x-select-enable-clipboard t)) (kill-new #1#))) 'eshell-clipboard-append) t)) "Map virtual devices name to Emacs Lisp functions.\nIf the user specifies any of the filenames above as a redirection\ntarget, the function in the second element will be called.\n\nIf the third element is non-nil, the redirection mode is passed as an\nargument (which is the symbol `overwrite', `append' or `insert'), and\nthe function is expected to return another function -- which is the\noutput function. Otherwise, the second element itself is the output\nfunction.\n\nThe output function is then called repeatedly with single strings,\nwhich represents successive pieces of the output of the command, until nil\nis passed, meaning EOF.\n\nNOTE: /dev/null is handled specially as a virtual target, and should\nnot be added to this variable." (repeat (list (string :tag "Target") function (choice (const :tag "Func returns output-func" t) (const :tag "Func is output-func" nil)))) put risky-local-variable t] 10) (defvar eshell-current-handles nil) #@56 The exit code from the last command. 0 if successful. (defvar eshell-last-command-status 0 (#$ . 3566)) #@58 The result of the last command. Not related to success. (defvar eshell-last-command-result nil (#$ . 3677)) #@57 If non-nil, the current buffer is a file output buffer. (defvar eshell-output-file-buffer nil (#$ . 3792)) #@36 Initialize the I/O subsystem code. (defalias 'eshell-io-initialize #[nil "\300\301\302\303\304$\210\305\306!\210\300\307\310\303\304$\210\300\311\312\303\304$\207" [add-hook eshell-parse-argument-hook eshell-parse-redirection nil t make-local-variable eshell-current-redirections eshell-pre-rewrite-command-hook eshell-strip-redirections eshell-post-rewrite-command-hook eshell-apply-redirections] 5 (#$ . 3905)]) #@44 Parse an output redirection, such as '2>'. (defalias 'eshell-parse-redirection #[nil "?\205? \304\305!\205? \203 \306 \207\307\310!\307\311!\n\312\230\203$ \313\314!\210\306\315\2030 \316!\2061 \310\317\320\nGSHDE\321\225b\210!*\207" [eshell-current-quoted eshell-current-argument oper sh looking-at "\\([0-9]\\)?\\(<\\|>+\\)&?\\([0-9]\\)?\\s-*" eshell-finish-arg match-string 1 2 "<" error "Eshell does not support input redirection" eshell-set-output-handle string-to-number quote [overwrite append insert] 0] 6 (#$ . 4325)]) #@43 Rewrite any output redirections in TERMS. (defalias 'eshell-strip-redirections #[(terms) "\305C \211A\n\203T \n@:\203 \n\211@@)\306=\204&