Server IP : 111.118.215.189 / Your IP : 18.118.164.125 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/shell.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\300\302!\210\303\304\305\306\307\310\307\311&\210\303\312\305\313\307\304%\210\303\314\305\315\307\304%\210\316\317\320\321\322DD\323\324\325\307\304&\210\316\326\320\321\327DD\330\324\325\307\304&\210\316\331\320\321\332DD\333\324\334\307\304&\210\316\335\320\321\336DD\337\324\340\307\304&\210\316\341\320\321\342DD\343\324\344\307\304&\210\316\345\320\321\346DD\347\324\350\307\304&\210\316\351\320\321\352DD\353\324\354\307\304&\210\316\355\320\321\356DD\357\324\325\307\304&\210\316\360\320\321\361DD\357\324\325\307\304&\210\316\362\320\321\363DD\364\324\365\307\304&\210\316\366\320\321\367DD\370\324\325\307\312&\210\316\371\320\321\372DD\373\324\325\307\312&\210\316\374\320\321\375DD\376\324\365\307\312&\210\316\377\320\321\201@ DD\201A \324\365\307\312&\210\316\201B \320\321\201C DD\201D \324\365\307\312&\210\316\201E \320\321\201F DD\201G \324\325\307\312&\210\316\201H \320\321\201I DD\201J \324\201K \307\312&\210\316\201L \320\321\201M DD\201N \324\365\307\312&\210\316\201O \320\321\201P DD\201Q \324\201R \307\304&\210\316\201S \320\321\201T DD\201U \324\201V \307\304&\210\316\201W \320\321\201X DD\201Y \324\201Z \307\304&\210\316\201[ \320\321\201\\ DD\201] \324\201^ \307\304&\207" [require comint pcomplete custom-declare-group shell nil "Running shell from within Emacs buffers." :group processes unix shell-directories "Directory support in shell mode." shell-faces "Faces in shell buffers." custom-declare-variable shell-dumb-shell-regexp funcall function #[0 "\300\301!\207" [purecopy "cmd\\(proxy\\)?\\.exe"] 2 "\n\n(fn)"] "Regexp to match shells that don't save their command history, and\ndon't handle the backslash as a quote character. For shells that\nmatch this regexp, Emacs will write out the command history when the\nshell finishes, and won't remove backslashes when it unquotes shell\narguments." :type regexp shell-prompt-pattern #[0 "\300\207" ["^[^#$%>\n]*[#$%>] *"] 1 "^[^#$%>\n]*[#$%>] *\n\n(fn)"] "Regexp to match prompts in the inferior shell.\nDefaults to \"^[^#$%>\\n]*[#$%>] *\", which works pretty well.\nThis variable is used to initialize `comint-prompt-regexp' in the\nshell buffer.\n\nIf `comint-use-prompt-regexp' is nil, then this variable is only used\nto determine paragraph boundaries. See Info node `Shell Prompts' for\nhow Shell mode treats paragraphs.\n\nThe pattern should probably not match more than one line. If it does,\nShell mode may become confused trying to distinguish prompt from input\non lines which don't start with a prompt." shell-completion-fignore #[0 "\300\207" [nil] 1 "\n\n(fn)"] "List of suffixes to be disregarded during file/command completion.\nThis variable is used to initialize `comint-completion-fignore' in the shell\nbuffer. The default is nil, for compatibility with most shells.\nSome people like (\"~\" \"#\" \"%\")." (repeat (string :tag "Suffix")) shell-delimiter-argument-list #[0 "\300\207" [(124 38 60 62 40 41 59)] 1 "\n\n(fn)"] "List of characters to recognize as separate arguments.\nThis variable is used to initialize `comint-delimiter-argument-list' in the\nshell buffer. The value may depend on the operating system or shell." (choice (const nil) (repeat :tag "List of characters" character)) shell-file-name-chars #[0 "\301>\203 \302\207\303\207" [system-type (ms-dos windows-nt cygwin) "~/A-Za-z0-9_^$!#%&{}@`'.,:()-" "[]~/A-Za-z0-9+@:_.$#%,={}-"] 2 "\n\n(fn)"] "String of characters valid in a file name.\nThis variable is used to initialize `comint-file-name-chars' in the\nshell buffer. The value may depend on the operating system or shell." string shell-file-name-quote-list #[0 "\302>?\205 \303 \304\"\207" [system-type shell-delimiter-argument-list (ms-dos windows-nt) append (32 36 42 33 34 39 96 35 92)] 3 "\n\n(fn)"] "List of characters to quote when in a file name.\nThis variable is used to initialize `comint-file-name-quote-list' in the\nshell buffer. The value may depend on the operating system or shell." (repeat character) shell-dynamic-complete-functions #[0 "\300\207" [(comint-c-a-p-replace-by-expanded-history shell-environment-variable-completion shell-command-completion shell-c-a-p-replace-by-expanded-directory pcomplete-completions-at-point shell-filename-completion comint-filename-completion)] 1 "\n\n(fn)"] "List of functions called to perform completion.\nThis variable is used to initialize `comint-dynamic-complete-functions' in the\nshell buffer." (repeat function) shell-command-regexp #[0 "\300\207" ["[^;&|\n]+"] 1 "[^;&|\n]+\n\n(fn)"] "Regexp to match a single command within a pipeline.\nThis is used for directory tracking and does not do a perfect job." shell-command-separator-regexp #[0 "\300\207" ["[;&|\n ]*"] 1 "[;&|\n ]*\n\n(fn)"] shell-completion-execonly #[0 "\300\207" [t] 1 "\n\n(fn)"] "If non-nil, use executable files only for completion candidates.\nThis mirrors the optional behavior of tcsh.\n\nDetecting executability of files may slow command completion considerably." boolean shell-popd-regexp #[0 "\300\207" ["popd"] 1 "popd\n\n(fn)"] "Regexp to match subshell commands equivalent to popd." shell-pushd-regexp #[0 "\300\207" ["pushd"] 1 "pushd\n\n(fn)"] "Regexp to match subshell commands equivalent to pushd." shell-pushd-tohome #[0 "\300\207" [nil] 1 "\n\n(fn)"] "If non-nil, make pushd with no arg behave as \"pushd ~\" (like cd).\nThis mirrors the optional behavior of tcsh." shell-pushd-dextract #[0 "\300\207" [nil] 1 "\n\n(fn)"] "If non-nil, make \"pushd +n\" pop the nth dir to the stack top.\nThis mirrors the optional behavior of tcsh." shell-pushd-dunique #[0 "\300\207" [nil] 1 "\n\n(fn)"] "If non-nil, make pushd only add unique directories to the stack.\nThis mirrors the optional behavior of tcsh." shell-cd-regexp #[0 "\300\207" ["cd"] 1 "cd\n\n(fn)"] "Regexp to match subshell commands equivalent to cd." shell-chdrive-regexp #[0 "\301>\205 \302\207" [system-type (ms-dos windows-nt) "[]a-zA-Z^_`\\[\\\\]:"] 2 "\n\n(fn)"] "If non-nil, is regexp used to track drive changes." (choice regexp (const nil)) shell-dirtrack-verbose #[0 "\300\207" [t] 1 "\n\n(fn)"] "If non-nil, show the directory stack following directory change.\nThis is effective only if directory tracking is enabled.\nThe `dirtrack' package provides an alternative implementation of this feature -\nsee the function `dirtrack-mode'." explicit-shell-file-name #[0 "\300\207" [nil] 1 "\n\n(fn)"] "If non-nil, is file name to use for explicitly requested inferior shell." (choice (const :tag "None" nil) file) explicit-csh-args #[0 "\301=\203 \302\207\303\207" [system-type hpux ("-i" "-T") ("-i")] 2 "\n\n(fn)"] "Args passed to inferior shell by \\[shell], if the shell is csh.\nValue is a list of strings, which may be nil." (repeat (string :tag "Argument")) explicit-bash-args #[0 "\303\300!\203\n \206 \304\305!\206 \306!\n\2045 \211\307\232\2035 \310!\2035 \311\312\313\314!\315P!\"\2035 \316\2026 \317\207" [explicit-shell-file-name shell-file-name purify-flag boundp getenv "ESHELL" file-name-nondirectory "bash" file-executable-p string-match "bad option" shell-command-to-string shell-quote-argument " --noediting" ("-i") ("--noediting" "-i")] 7 "\n\n(fn)"] "Args passed to inferior shell by \\[shell], if the shell is bash.\nValue is a list of strings, which may be nil." (repeat (string :tag "Argument")) shell-input-autoexpand #[0 "\300\207" [history] 1 "\n\n(fn)"] "If non-nil, expand input command history references on completion.\nThis mirrors the optional behavior of tcsh (its autoexpand and histlit).\n\nIf the value is `input', then the expansion is seen on input.\nIf the value is `history', then the expansion is only when inserting\ninto the buffer's input ring. See also `comint-magic-space' and\n`comint-dynamic-complete-functions'.\n\nThis variable supplies a default for `comint-input-autoexpand',\nfor Shell mode only." (choice (const :tag "off" nil) (const input) (const history) (const :tag "on" t))] 8) #@119 List of directories saved by pushd in this buffer's shell. Thus, this does not include the shell's current directory. (defvar shell-dirstack nil (#$ . 8509)) #@64 Non-nil in a shell buffer means directory tracking is enabled. (defvar shell-dirtrackp t (#$ . 8673)) #@54 Keep track of last directory for ksh `cd -' command. (defvar shell-last-dir nil (#$ . 8781)) #@57 Command used by `shell-resync-dirs' to query the shell. (defvar shell-dirstack-query nil (#$ . 8880)) (defvar shell-mode-map (byte-code "\301 \244\302\303\304#\210\302\305\306#\210\302\307\310#\210\302\311\312#\210\302\313\314#\210\302\315\316\317\320\321\"!B#\210\322\320\323\"\324\325\326$\210\322\320\327\"\330\331\332$\210\211\207" [comint-mode-map make-sparse-keymap define-key "" shell-forward-command "" shell-backward-command " " completion-at-point [134217741] shell-resync-dirs "\277" comint-dynamic-list-filename-completions [menu-bar completion] "Complete" copy-keymap lookup-key [menu-bar completion] define-key-after [menu-bar completion] [complete-env-variable] ("Complete Env. Variable Name" . shell-dynamic-complete-environment-variable) complete-file [menu-bar completion] [expand-directory] ("Expand Directory Reference" . shell-replace-by-expanded-directory) complete-expand] 9)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable shell-mode-hook funcall function #[0 "\300\207" [nil] 1 "\n\n(fn)"] "Hook for customizing Shell mode." :type hook :group shell] 8) #@52 Additional expressions to highlight in Shell mode. (defvar shell-font-lock-keywords '(("[ ]\\([+-][^ \n]+\\)" 1 font-lock-comment-face) ("^[^ \n]+:.*" . font-lock-string-face) ("^\\[[1-9][0-9]*\\]" . font-lock-string-face)) (#$ . 10018)) (defalias 'shell--unquote&requote-argument #[513 "\211C\211@\204 \211\302\240\210\302\303\211C\304\305\306\307>\205 \310 \205 \311\260\303C\312\303\313 #\211\262\203\324 O%\210\314\224\203X \315\314\"\302\225%\210\202\315 \316\224\203r \317\315\316\"!\302\225[%\210\202\315 H\320=\203\202 ?\262\202\315 H\321=\203\311 \203\235 \322\302\225%\210\202\315 \211\nGTW\203\315 \313\322T# TO\206\303 G%\266\202\315 \323\324!\210\302\225\262\202$ \303OG%\210\325\326@\237\327#@\330E\266\207\207" [system-type comint-file-name-quote-list 0 nil "[\"']" "\\|\\$\\(?:\\([[:alpha:]][[:alnum:]]*\\)" "\\|{\\(?1:[^{}]+\\)}\\)" (ms-dos windows-nt) "\\|%\\(?1:[^\\\\/]*\\)%" "\\|\\\\\\(.\\)" #[1285 "@B\240\210\211@GZ\240\210@\206 @\300V?\205- \300W\203( [\202, @\\\240\207" [0] 8 "\n\n(fn UPOS USTRS QUPOS STR END)"] string-match 2 match-string 1 getenv 34 39 "'" error "Unexpected case in shell--unquote&requote-argument!" mapconcat identity "" comint-quote-filename] 18 "\n\n(fn QSTR &optional UPOS)"]) (defalias 'shell--unquote-argument #[257 "\300!@\207" [shell--unquote&requote-argument] 3 "\n\n(fn STR)"]) (defalias 'shell--requote-argument #[514 "\300\"\211A@\3018B\207" [shell--unquote&requote-argument 2] 6 "\n\n(fn UPOS QSTR)"]) #@67 Parse whitespace separated arguments in the current region. (fn) (defalias 'shell--parse-pcomplete-arguments #[0 "\212\301\302!\210`)`\303\211\212b\210`W\203\222 \304\303w\210`B\262\303\305\306!\203\205 \307\225b\210\310\224\203O \2049 \310\224b\210\311\202H \310\224\310\225U\203E \311\202H \312\310!B\262\202 \313\224\203l \204^ \312\313!\202e \314\315\316\312\313!#B\262\202 \302\224\203{ \312\302!B\262\202 \312\307!B\262\202 \317\320\237\321#B\266\202\202 \211\237\237)B\207" [comint-file-name-quote-list shell-backward-command 1 nil " \n" looking-at "\\(?:[^ \n\\\"']+\\|'\\([^']*\\)'?\\|\"\\(\\(?:[^\"\\]\\|\\\\.\\)*\\)\"?\\|\\\\\\(\\(?:.\\|\n\\)?\\)\\)" 0 3 "\\" match-string 2 replace-regexp-in-string "\\\\\\(.\\)" "\\1" mapconcat identity ""] 10 (#$ . 11595)]) #@203 Completion function for shell command names. This is the value of `pcomplete-command-completion-function' for Shell buffers. It implements `shell-completion-execonly' for `pcomplete' completion. (fn) (defalias 'shell-command-completion-function #[0 "\300\301\302\211\211$\207" [pcomplete--here #[0 "\301\302\205 \303\"\207" [shell-completion-execonly pcomplete-entries nil file-executable-p] 3 "\n\n(fn)"] nil] 5 (#$ . 12399)]) #@72 Setup completion vars for `shell-mode' and `read-shell-command'. (fn) (defalias 'shell-completion-vars #[0 "\306\301!\210\306\303!\210\n\306\305!\210\f\306\307!\210\306\310!\210\306\311!\210\312 \306\313!\210\314\306\315!\210\316 \306\317!\210\204D \320\202\\ ;\203O \202\\ :\204Y \321\202\\ A\306\322!\210\323\306\324!\210\325\326\327\330\331\332$\207" [shell-completion-fignore comint-completion-fignore shell-delimiter-argument-list comint-delimiter-argument-list shell-file-name-chars comint-file-name-chars make-local-variable comint-file-name-quote-list comint-dynamic-complete-functions comint-unquote-function shell--unquote-argument comint-requote-function shell--requote-argument pcomplete-parse-arguments-function shell--parse-pcomplete-arguments pcomplete-termination-string "" " " pcomplete-command-completion-function shell-command-completion-function pcomplete-default-completion-function ignore add-hook completion-at-point-functions comint-completion-at-point nil t shell-file-name-quote-list shell-dynamic-complete-functions comint-completion-addsuffix shell-input-autoexpand comint-input-autoexpand] 5 (#$ . 12837)]) (byte-code "\300\301\302\303#\210\304\305N\204 \300\304\305\306\307!#\210\310\311!\204 \300\311\312\301#\210\300\207" [put shell-mode mode-class special shell-mode-hook variable-documentation purecopy "Hook run when entering Shell mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp shell-mode-map definition-name] 5) (defvar shell-mode-map (make-sparse-keymap)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\305\306!\204 \302\306\307\310#\210\300\207" [shell-mode-map variable-documentation put purecopy "Keymap for `shell-mode'." boundp shell-mode-syntax-table definition-name shell-mode] 5) (defvar shell-mode-syntax-table (make-syntax-table)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [shell-mode-syntax-table variable-documentation put purecopy "Syntax table for `shell-mode'." shell-mode-abbrev-table definition-name shell-mode] 5) (defvar shell-mode-abbrev-table (progn (define-abbrev-table 'shell-mode-abbrev-table nil) shell-mode-abbrev-table)) (byte-code "\300\301N\204 \302\300\301\303\304!#\210\302\305\306\307#\207" [shell-mode-abbrev-table variable-documentation put purecopy "Abbrev table for `shell-mode'." shell-mode derived-mode-parent comint-mode] 5) #@2878 Major mode for interacting with an inferior shell.\<shell-mode-map> \[comint-send-input] after the end of the process' output sends the text from the end of process to the end of the current line. \[comint-send-input] before end of process output copies the current line minus the prompt to the end of the buffer and sends it (\[comint-copy-old-input] just copies the current line). \[send-invisible] reads a line of text without echoing it, and sends it to the shell. This is useful for entering passwords. Or, add the function `comint-watch-for-password-prompt' to `comint-output-filter-functions'. If you want to make multiple shell buffers, rename the `*shell*' buffer using \[rename-buffer] or \[rename-uniquely] and start a new shell. If you want to make shell buffers limited in length, add the function `comint-truncate-buffer' to `comint-output-filter-functions'. If you accidentally suspend your process, use \[comint-continue-subjob] to continue it. `cd', `pushd' and `popd' commands given to the shell are watched by Emacs to keep this buffer's default directory the same as the shell's working directory. While directory tracking is enabled, the shell's working directory is displayed by \[list-buffers] or \[mouse-buffer-menu] in the `File' field. \[dirs] queries the shell and resyncs Emacs's idea of what the current directory stack is. \[shell-dirtrack-mode] turns directory tracking on and off. (The `dirtrack' package provides an alternative implementation of this feature - see the function `dirtrack-mode'.) \{shell-mode-map} Customization: Entry to this mode runs the hooks on `comint-mode-hook' and `shell-mode-hook' (in that order). Before each input, the hooks on `comint-input-filter-functions' are run. After each shell output, the hooks on `comint-output-filter-functions' are run. Variables `shell-cd-regexp', `shell-chdrive-regexp', `shell-pushd-regexp' and `shell-popd-regexp' are used to match their respective commands, while `shell-pushd-tohome', `shell-pushd-dextract' and `shell-pushd-dunique' control the behavior of the relevant command. Variables `comint-completion-autolist', `comint-completion-addsuffix', `comint-completion-recexact' and `comint-completion-fignore' control the behavior of file name, command name and variable name completion. Variable `shell-completion-execonly' controls the behavior of command name completion. Variable `shell-completion-fignore' is used to initialize the value of `comint-completion-fignore'. Variables `comint-input-ring-file-name' and `comint-input-autoexpand' control the initialization of the input ring history, and history expansion. Variables `comint-output-filter-functions', a hook, and `comint-scroll-to-bottom-on-input' and `comint-scroll-to-bottom-on-output' control whether input and output cause the window to scroll to the end of the buffer. (fn) (defalias 'shell-mode #[0 "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204'