%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/shell.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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\314\315\316\317\320DD\321\322\323\307\304&\210\314\324\316\317\325DD\326\322\323\307\304&\210\314\327\316\317\330DD\331\322\332\307\304&\210\314\333\316\317\334DD\335\322\336\307\304&\210\314\337\316\317\340DD\341\322\342\307\304&\210\314\343\316\317\344DD\345\322\346\307\304&\210\314\347\316\317\350DD\351\322\352\307\304&\210\314\353\316\317\354DD\355\322\323\307\304&\210\314\356\316\317\357DD\355\322\323\307\304&\210\314\360\316\317\361DD\362\322\363\307\304&\210\314\364\316\317\365DD\366\322\323\307\312&\210\314\367\316\317\370DD\371\322\323\307\312&\210\314\372\316\317\373DD\374\322\363\307\312&\210\314\375\316\317\376DD\377\322\363\307\312&\210\314\201@ \316\317\201A DD\201B \322\363\307\312&\210\314\201C \316\317\201D DD\201E \322\323\307\312&\210\314\201F \316\317\201G DD\201H \322\201I \307\312&\210\314\201J \316\317\201K DD\201L \322\363\307\312&\210\314\201M \316\317\201N DD\201O \322\201P \307\304&\210\314\201Q \316\317\201R DD\201S \322\201T \307\304&\210\314\201U \316\317\201V DD\201W \322\201X \307\304&\210\314\201Y \316\317\201Z DD\201[ \322\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." custom-declare-variable shell-dumb-shell-regexp funcall function #[0 "\300\301!\207" [purecopy "cmd\\(proxy\\)?\\.exe"] 2] "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" [#1="^[^#$%>\n]*[#$%>] *"] 1 #1#] "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] "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] "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] "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] "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] "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" [#2="[^;&|\n]+"] 1 #2#] "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" [#3="[;&|\n ]*"] 1 #3#] shell-completion-execonly #[0 "\300\207" [t] 1] "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" [#4="popd"] 1 #4#] "Regexp to match subshell commands equivalent to popd." shell-pushd-regexp #[0 "\300\207" [#5="pushd"] 1 #5#] "Regexp to match subshell commands equivalent to pushd." shell-pushd-tohome #[0 "\300\207" [nil] 1] "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] "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] "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" [#6="cd"] 1 #6#] "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] "If non-nil, is regexp used to track drive changes." (choice regexp (const nil)) shell-dirtrack-verbose #[0 "\300\207" [t] 1] "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] "If non-nil, is file name to use for explicitly requested inferior shell.\nWhen nil, such interactive shell sessions fallback to using either\nthe shell specified in $ESHELL or in `shell-file-name'." (choice (const :tag "None" nil) file) explicit-csh-args #[0 "\301=\203 \302\207\303\207" [system-type hpux ("-i" "-T") ("-i")] 2] "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 "\300\207" [("--noediting" "-i")] 1] "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] "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 (#$ . 7832)) (defvaralias 'shell-dirtrack-mode 'shell-dirtrackp) #@64 Non-nil in a shell buffer means directory tracking is enabled. (defvar shell-dirtrackp t (#$ . 8048)) #@54 Keep track of last directory for ksh `cd -' command. (defvar shell-last-dir nil (#$ . 8156)) #@57 Command used by `shell-resync-dirs' to query the shell. (defvar shell-dirstack-query nil (#$ . 8255)) (defvar shell-mode-map (byte-code "\301 \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] "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)) (#$ . 9377)) #@37 Shell file name started in `shell'. (defvar shell--start-prog nil (#$ . 9623)) (byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local shell--start-prog put permanent-local t] 4) #@28 (fn QSTR &optional UPOS) (defalias 'shell--unquote&requote-argument #[513 "\211C\211\242\204 \211\302\240\210\302\303\211C\304\305>\205 \306 \205 \307Q\303C\310\303\311 #\211\262\203\336 \312\f#%\210\313\224\203V \314\313\"\302\225%\210\202\327 \315\224\203p \316\314\315\"!\302\225[%\210\202\327 H\317=\203\200 ?\262\202\327 H\320=\203\323 \203\233 \321\302\225%\210\202\327 \211T\nGW\203\327 \311\321T#\211\204\274 \nG\262\322\fGD!\210 \312T#%\266\202\327 \323\324!\210\302\225\262\202! \312\f\"G%\210\325\326\242\237\327#\242\330E\266\207\207" [system-type comint-file-name-quote-list 0 nil "[\"']\\|\\$\\(?:\\([[:alpha:]][[:alnum:]]*\\)\\|{\\(?1:[^{}]+\\)}\\)" (ms-dos windows-nt) "\\|%\\(?1:[^\\\\/]*\\)%" "\\|\\\\\\(.\\)" #[1285 "\242B\240\210\211\242GZ\240\210\242\206 \242\300V?\205- \300W\203( [\202, \242\\\240\207" [0] 8 "\n\n(fn UPOS USTRS QUPOS STR END)"] string-match substring 2 match-string 1 getenv 34 39 "'" set-match-data error "Unexpected case in shell--unquote&requote-argument!" mapconcat identity "" comint-quote-filename] 19 (#$ . 9828)]) #@12 (fn STR) (defalias 'shell--unquote-argument #[257 "\300!@\207" [shell--unquote&requote-argument] 3 (#$ . 11001)]) #@18 (fn UPOS QSTR) (defalias 'shell--requote-argument #[514 "\300\"\211A@\3018B\207" [shell--unquote&requote-argument 2] 6 (#$ . 11124)]) #@61 Parse whitespace separated arguments in the current region. (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 (#$ . 11269)]) #@197 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. (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] nil] 5 (#$ . 12069)]) #@66 Setup completion vars for `shell-mode' and `read-shell-command'. (defalias 'shell-completion-vars #[0 "\306\301!\210\306\303!\210\n\306\305!\210\f\306\307!\210\306\310!\210\311!\206&