;ELC ;;; Compiled by cyd@localhost on Mon Apr 23 22:20:34 2007 ;;; from file /home/cyd/emacs/lisp/comint.el ;;; in Emacs version 22.0.99 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. (if (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19.29"))) (error "`comint.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307%\210\302\310\304\311\306\303%\210\302\312\304\313\314\315\306\303&\207" [require ring custom-declare-group comint nil "General command interpreter in a window stuff." :group processes comint-completion "Completion facilities in comint." comint-source "Source finding facilities in comint." :prefix "comint-"] 8) #@454 Regexp to recognize prompts in the inferior process. Defaults to "^", the null string at BOL. This variable is only used if the variable `comint-use-prompt-regexp' is non-nil. Good choices: Canonical Lisp: "^[^> \n]*>+:? *" (Lucid, franz, kcl, T, cscheme, oaklisp) Lucid Common Lisp: "^\\(>\\|\\(->\\)+\\) *" franz: "^\\(->\\|<[0-9]*>:\\) *" kcl: "^>+ *" shell: "^[^#$%>\n]*[#$%>] *" T: "^>+ *" This is a good thing to set in mode hooks. (defvar comint-prompt-regexp "^" (#$ . 923)) #@894 If non-nil, the comint prompt is read only. The read only region includes the newline before the prompt. This does not affect existing prompts. Certain derived modes may override this option. If you set this option to t, then the safe way to temporarily override the read-only-ness of comint prompts is to call `comint-kill-whole-line' or `comint-kill-region' with no narrowing in effect. This way you will be certain that none of the remaining prompts will be accidentally messed up. You may wish to put something like the following in your `.emacs' file: (add-hook 'comint-mode-hook (lambda () (define-key comint-mode-map "\C-w" 'comint-kill-region) (define-key comint-mode-map [C-S-backspace] 'comint-kill-whole-line))) If you sometimes use comint-mode on text-only terminals or with `emacs -nw', you might wish to use another binding for `comint-kill-whole-line'. (custom-declare-variable 'comint-prompt-read-only 'nil '(#$ . 1428) :type 'boolean :group 'comint :version "22.1") #@382 List of characters to recognize as separate arguments in input. Strings comprising a character in this list will separate the arguments surrounding them, and also be regarded as arguments in their own right (unlike whitespace). See `comint-arguments'. Defaults to the empty list. For shells, a good value is (?\| ?& ?< ?> ?\( ?\) ?;). This is a good thing to set in mode hooks. (defvar comint-delimiter-argument-list nil (#$ . 2443)) #@399 *If non-nil, expand input command history references on completion. This mirrors the optional behavior of tcsh (its autoexpand and histlist). If the value is `input', then the expansion is seen on input. If the value is `history', then the expansion is only when inserting into the buffer's input ring. See also `comint-magic-space' and `comint-dynamic-complete'. This variable is buffer-local. (custom-declare-variable 'comint-input-autoexpand 'nil '(#$ . -2887) :type '(choice (const :tag "off" nil) (const input) (const history) (other :tag "on" t)) :group 'comint) (byte-code "\300\301\302\303\304\305%\210\300\306\307\310\304\305%\207" [custom-declare-face comint-highlight-input ((t (:weight bold))) "Face to use to highlight user input." :group comint comint-highlight-prompt ((((min-colors 88) (background dark)) (:foreground "cyan1")) (((background dark)) (:foreground "cyan")) (t (:foreground "dark blue"))) "Face to use to highlight prompts."] 6) #@143 *If non-nil, don't add input matching the last on the input ring. This mirrors the optional behavior of bash. This variable is buffer-local. (custom-declare-variable 'comint-input-ignoredups 'nil '(#$ . -3855) :type 'boolean :group 'comint) #@199 *If non-nil, name of the file to read/write input history. See also `comint-read-input-ring' and `comint-write-input-ring'. This variable is buffer-local, and is a good thing to set in mode hooks. (custom-declare-variable 'comint-input-ring-file-name 'nil '(#$ . -4104) :type '(choice (const :tag "nil" nil) file) :group 'comint) #@282 *Controls whether input to interpreter causes window to scroll. If nil, then do not scroll. If t or `all', scroll all windows showing buffer. If `this', scroll only the selected window. The default is nil. See `comint-preinput-scroll-to-bottom'. This variable is buffer-local. (custom-declare-variable 'comint-scroll-to-bottom-on-input 'nil '(#$ . -4442) :type '(choice (const :tag "off" nil) (const t) (const all) (const this)) :group 'comint) #@559 *Controls whether interpreter output moves point to the end of the output. If nil, then output never moves point to the output. (If the output occurs at point, it is inserted before point.) If t or `all', move point in all windows showing the buffer. If `this', move point only the selected window. If `others', move point only in other windows, not in the selected window. The default is nil. See the variable `comint-scroll-show-maximum-output' and the function `comint-postoutput-scroll-to-bottom'. This variable is buffer-local in all Comint buffers. (custom-declare-variable 'comint-move-point-for-output 'nil '(#$ . -4898) :type '(choice (const :tag "off" nil) (const t) (const all) (const this) (const others)) :group 'comint) (defvaralias 'comint-scroll-to-bottom-on-output 'comint-move-point-for-output) #@579 *Controls how to scroll due to interpreter output. This variable applies when point is at the end of the buffer (either because it was originally there, or because `comint-move-point-for-output' said to move it there) and output from the subprocess is inserted. Non-nil means scroll so that the window is full of text and point is on the last line. A value of nil means don't do anything special--scroll normally. See also the variable `comint-move-point-for-output' and the function `comint-postoutput-scroll-to-bottom'. This variable is buffer-local in all Comint buffers. (custom-declare-variable 'comint-scroll-show-maximum-output 't '(#$ . -5721) :type 'boolean :group 'comint) #@206 *The maximum size in lines for Comint buffers. Comint buffers are truncated from the top to be no greater than this number, if the function `comint-truncate-buffer' is on `comint-output-filter-functions'. (custom-declare-variable 'comint-buffer-maximum-size '1024 '(#$ . -6414) :type 'integer :group 'comint) #@29 Size of input history ring. (defvar comint-input-ring-size 150 (#$ . 6729)) #@49 Separator between commands in the history file. (defvar comint-input-ring-separator "\n" (#$ . 6811)) #@76 Regexp for history entries that should be ignored when Comint initializes. (defvar comint-input-history-ignore "^#" (#$ . 6919)) #@183 *If non-nil, assume that the subprocess echoes any input. If so, delete one copy of the input so that only one copy eventually appears in the buffer. This variable is buffer-local. (custom-declare-variable 'comint-process-echoes 'nil '(#$ . -7055) :type 'boolean :group 'comint) #@117 *Regexp matching prompts for passwords in the inferior process. This is used by `comint-watch-for-password-prompt'. (custom-declare-variable 'comint-password-prompt-regexp '"\\(\\([Oo]ld \\|[Nn]ew \\|'s \\|login \\|Kerberos \\|CVS \\|UNIX \\| SMB \\|^\\)[Pp]assword\\( (again)\\)?\\|pass phrase\\|\\(Enter\\|Repeat\\|Bad\\) passphrase\\)\\(?:, try again\\)?\\(?: for [^:]+\\)?:\\s *\\'" '(#$ . -7342) :type 'regexp :group 'comint) #@412 Function that returns old text in Comint mode. This function is called when return is typed while the point is in old text. It returns the text to be submitted as process input. The default is `comint-get-old-input-default', which either grabs the current input field or grabs the current line and strips off leading text matching `comint-prompt-regexp', depending on the value of `comint-use-prompt-regexp'. (defvar comint-get-old-input 'comint-get-old-input-default (#$ . 7780)) #@190 List of functions called to perform completion. Functions should return non-nil if completion was performed. See also `comint-dynamic-complete'. This is a good thing to set in mode hooks. (defvar comint-dynamic-complete-functions '(comint-replace-by-expanded-history comint-dynamic-complete-filename) (#$ . 8270)) #@203 Predicate for filtering additions to input history. Takes one argument, the input. If non-nil, the input may be saved on the input history list. Default is to save anything that isn't all whitespace. (defvar comint-input-filter #[(str) "\301\302\"?\207" [str string-match "\\`\\s *\\'"] 3] (#$ . 8592)) #@128 Abnormal hook run before input is sent to the process. These functions get one argument, a string containing the text to send. (defvar comint-input-filter-functions nil (#$ . 8905)) #@529 Functions to call after output is inserted into the buffer. One possible function is `comint-postoutput-scroll-to-bottom'. These functions get one argument, a string containing the text as originally inserted. Note that this might not be the same as the buffer contents between `comint-last-output-start' and the buffer's `process-mark', if other filter functions have already modified the buffer. See also `comint-preoutput-filter-functions'. You can use `add-hook' to add functions to this list either globally or locally. (defvar comint-output-filter-functions '(comint-postoutput-scroll-to-bottom comint-watch-for-password-prompt) (#$ . 9094)) #@75 Non-nil directs the `comint-input-sender' function not to send a newline. (defvar comint-input-sender-no-newline nil (#$ . 9751)) #@383 Function to actually send to PROCESS the STRING submitted by user. Usually this is just `comint-simple-send', but if your mode needs to massage the input string, put a different function here. `comint-simple-send' just sends the string plus a newline. (If `comint-input-sender-no-newline' is non-nil, it omits the newline.) This is called from the user command `comint-send-input'. (defvar comint-input-sender 'comint-simple-send (#$ . 9888)) #@89 *Non-nil means go to the end of the line before sending input. See `comint-send-input'. (custom-declare-variable 'comint-eol-on-send 't '(#$ . -10337) :type 'boolean :group 'comint) #@308 *If non-nil, use `comint-prompt-regexp' to recognize prompts. If nil, then program output and user-input are given different `field' properties, which Emacs commands can use to distinguish them (in particular, common movement commands such as `beginning-of-line' respect field boundaries in a natural way). (custom-declare-variable 'comint-use-prompt-regexp 'nil '(#$ . -10526) :type 'boolean :group 'comint) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defvaralias comint-use-prompt-regexp-instead-of-fields comint-use-prompt-regexp nil make-obsolete-variable "22.1"] 4) #@85 Hook run upon entry to `comint-mode'. This is run before the process is cranked up. (custom-declare-variable 'comint-mode-hook 'nil '(#$ . 11116) :type 'hook :group 'comint) #@332 Hook run each time a process is exec'd by `comint-exec'. This is called after the process is cranked up. It is useful for things that must be done each time a process is executed in a Comint mode buffer (e.g., `(process-kill-without-query)'). In contrast, the `comint-mode-hook' is only executed once when the buffer is created. (custom-declare-variable 'comint-exec-hook ''nil '(#$ . 11297) :type 'hook :group 'comint) (byte-code "\304B\305\304!\204)\306\304\307 \310 \311\312#\210\310 \313\314#\210\310 \315\312#\210\310 \316\314#\210\310 \317\320#\210\310 \321\322#\210\310 \323\324#\210\310 \325\326#\210\310 \327\330#\210\310 \331\332#\210\310 \333\334#\210\310 \335\336#\210\310 \337\340#\210\310 \341\342#\210\310 \343\344#\210\310 \345\346#\210\310 \347\350#\210\310 \351\352#\210\310 \353\354#\210\310 \355\356#\210\310 \357\360#\210\310 \361\330#\210\310 \362\363#\210\310 \364\365#\210\310 \366\367#\210\310 \370\371#\210\310 \372\373#\210\310 \374\375#\210\310 \376\377#\210\310 \201@\201A#\210\310 \201B\201C\307\201C!B#\210\310 \201D\201E#\210\310 \201F\201G#\210\310 \201H\201I#\210\310 \201J\201K#\210\310 \201L\201M\307\201M!B#\210\310 \201N\201O#\210\310 \201P\201Q#\210\310 \201R\201S#\210\310 \201T\201U#\210\310 \201V\201W#\210\310 \201X\201Y#\210\310 \201Z\201[#\210\310 \201\\\201]#\210\310 \201^\201_#\210\310 \201`\201a#\210\310 \201b\201c#\210\310 \201d\201e#\210\310 \201f\201g#\210\310 \201h\201i#\210\310 \201j\201k#\210\310 \201l\201m#\210\310 \201n\201o#\210\310 \201p\201q#\210\310 \201r\201s#\210\307\201t!\310 \201u\201t\nB#\210\310\n\201v\201w#\210\310\n\201x\201y#\210\310\n\201z\201{#\210\310\n\201|\201}#\210\310\n\201~\201#\210\310\n\201\200\201\201#\210)\201\202\201\203 \" )\"\210\304\207" [current-load-list map signals-map menu-bar-final-items comint-mode-map default-boundp set-default make-sparse-keymap define-key "p" comint-previous-input "n" comint-next-input [C-up] [C-down] "r" comint-previous-matching-input "s" comint-next-matching-input [3 134217842] comint-previous-matching-input-from-input [3 134217843] comint-next-matching-input-from-input "\f" comint-show-output " " comint-send-input "" comint-delchar-or-maybe-eof " " comint-accumulate "" comint-get-next-from-history "" comint-bol-or-process-mark "" comint-kill-input "" backward-kill-word "" comint-interrupt-subjob "" comint-stop-subjob "" comint-quit-subjob " " comint-copy-old-input "" comint-delete-output "" "" comint-show-maximum-output "\f" comint-dynamic-list-input-ring "" comint-next-prompt "" comint-previous-prompt "" comint-send-eof "" comint-write-output "." comint-insert-previous-argument [mouse-2] comint-insert-input [menu-bar completion] "Complete" [menu-bar completion complete-expand] ("Expand File Name" . comint-replace-by-expanded-filename) [menu-bar completion complete-listing] ("File Completion Listing" . comint-dynamic-list-filename-completions) [menu-bar completion complete-file] ("Complete File Name" . comint-dynamic-complete-filename) [menu-bar completion complete] ("Complete Before Point" . comint-dynamic-complete) [menu-bar inout] "In/Out" [menu-bar inout delete-output] ("Delete Current Output Group" . comint-delete-output) [menu-bar inout append-output-to-file] ("Append Current Output Group to File" . comint-append-output-to-file) [menu-bar inout write-output] ("Write Current Output Group to File" . comint-write-output) [menu-bar inout next-prompt] ("Forward Output Group" . comint-next-prompt) [menu-bar inout previous-prompt] ("Backward Output Group" . comint-previous-prompt) [menu-bar inout show-maximum-output] ("Show Maximum Output" . comint-show-maximum-output) [menu-bar inout show-output] ("Show Current Output Group" . comint-show-output) [menu-bar inout kill-input] ("Kill Current Input" . comint-kill-input) [menu-bar inout copy-input] ("Copy Old Input" . comint-copy-old-input) [menu-bar inout forward-matching-history] ("Forward Matching Input..." . comint-forward-matching-input) [menu-bar inout backward-matching-history] ("Backward Matching Input..." . comint-backward-matching-input) [menu-bar inout next-matching-history] ("Next Matching Input..." . comint-next-matching-input) [menu-bar inout previous-matching-history] ("Previous Matching Input..." . comint-previous-matching-input) [menu-bar inout next-matching-history-from-input] ("Next Matching Current Input" . comint-next-matching-input-from-input) [menu-bar inout previous-matching-history-from-input] ("Previous Matching Current Input" . comint-previous-matching-input-from-input) [menu-bar inout next-history] ("Next Input" . comint-next-input) [menu-bar inout previous-history] ("Previous Input" . comint-previous-input) [menu-bar inout list-history] ("List Input History" . comint-dynamic-list-input-ring) [menu-bar inout expand-history] ("Expand History Before Point" . comint-replace-by-expanded-history) "Signals" [menu-bar signals] [eof] ("EOF" . comint-send-eof) [kill] ("KILL" . comint-kill-subjob) [quit] ("QUIT" . comint-quit-subjob) [cont] ("CONT" . comint-continue-subjob) [stop] ("STOP" . comint-stop-subjob) [break] ("BREAK" . comint-interrupt-subjob) append (completion inout signals)] 8) #@126 Non-nil if communications via pty; false if by pipe. Buffer local. This is to work around a bug in Emacs process signaling. (defvar comint-ptyp t (#$ . 16564)) (byte-code "\301B\302\301!\204\303\301\304\"\210\305B\302\305!\204\303\305\304\"\210\306B\302\306!\204-\303\306\304\"\210\307B\302\307!\204<\303\307\304\"\210\304\207" [current-load-list comint-input-ring default-boundp set-default nil comint-last-input-start comint-last-input-end comint-last-output-start] 3) #@40 Index of last matched history element. (defvar comint-input-ring-index nil (#$ . 17056)) #@47 Input previously used to match input history. (defvar comint-matching-input-from-input-string "" (#$ . 17151)) (byte-code "\301B\302\301!\204\303\301\304\"\210\301\207" [current-load-list comint-save-input-ring-index default-boundp set-default "Last input ring index which you copied.\nThis is to support the command \\[comint-get-next-from-history]."] 3) #@116 Non-nil if you are accumulating input lines to send as input together. The command \[comint-accumulate] sets this. (defvar comint-accum-marker nil (#$ . 17518)) #@35 Stored input for history cycling. (defvar comint-stored-incomplete-input nil (#$ . 17685)) (byte-code "\302\303\304\305#\210\302\306\307\310#\210\302\311\307\310#\210\302\312\307\310#\210\302\305\307\310#\210\302\313\307\310#\210\302\314\307\310#\210\302\315\307\310#\210\302\316\307\310#\210\302\317\307\310#\210\302\320\307\310#\210\302\321\307\310#\210\302\322\323\324#\210\325\326N\204Z\302\325\326\327#\210\330\331!\204f\302\331\332\322#\210\331B\333\331!\204v\334\331\335 \"\210\330\336!\204\202\302\336\332\322#\210\336B\333\336!\204\222\334\336\337 \"\210\302\301\332\322#\210\301B\333\301!\204\254\334\301\340\301\341\"\210 \"\210\302\322\342\341#\207" [current-load-list comint-mode-abbrev-table put comint-replace-by-expanded-history menu-enable comint-input-autoexpand comint-input-ring permanent-local t comint-input-ring-index comint-save-input-ring-index comint-input-filter-functions comint-output-filter-functions comint-preoutput-filter-functions comint-scroll-to-bottom-on-input comint-move-point-for-output comint-scroll-show-maximum-output comint-ptyp comint-mode mode-class special comint-mode-hook variable-documentation "Hook run when entering Comint mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp comint-mode-map definition-name default-boundp set-default make-sparse-keymap comint-mode-syntax-table make-syntax-table define-abbrev-table nil derived-mode-parent] 5) #@1718 Major mode for interacting with an inferior interpreter. Interpreter name is same as buffer name, sans the asterisks. Return at end of buffer sends line as input. Return not at end copies rest of line to end and sends it. Setting variable `comint-eol-on-send' means jump to the end of the line before submitting new input. This mode is customized to create major modes such as Inferior Lisp mode, Shell mode, etc. This can be done by setting the hooks `comint-input-filter-functions', `comint-input-filter', `comint-input-sender' and `comint-get-old-input' to appropriate functions, and the variable `comint-prompt-regexp' to the appropriate regular expression. An input history is maintained of size `comint-input-ring-size', and can be accessed with the commands \[comint-next-input], \[comint-previous-input], and \[comint-dynamic-list-input-ring]. Input ring history expansion can be achieved with the commands \[comint-replace-by-expanded-history] or \[comint-magic-space]. Input ring expansion is controlled by the variable `comint-input-autoexpand', and addition is controlled by the variable `comint-input-ignoredups'. Commands with no default key bindings include `send-invisible', `comint-dynamic-complete', `comint-dynamic-list-filename-completions', and `comint-magic-space'. Input to, and output from, the subprocess can cause the window to scroll to the end of the buffer. See variables `comint-output-filter-functions', `comint-preoutput-filter-functions', `comint-scroll-to-bottom-on-input', and `comint-move-point-for-output'. If you accidentally suspend your process, use \[comint-continue-subjob] to continue it. \{comint-mode-map} Entry to this mode runs the hooks on `comint-mode-hook'. (defalias 'comint-mode #[nil "\306\300!\210\307\310 \210\311\312\313 !\210\314\f!\210 =\315>\306\316!\210\317 \306\320!\210\317 \306\321!\210\322 \306\323!\210\306\324!\210\306\325!\210\306\326!\210\306\327!\210\330\326!\203R\204X\331!\306\332!\210\306\333!\210\330\332!\203k\204n\334\330\333!\203y\204|\334\306\335!\210\306\336!\210\306\337!\210\306\340!\210\306\341!\210\306\342!\210\306\343!\210\306\344!\210\306\345!\210\306\346!\210\306\347!\210\306\350!\210\306\351!\210\306\352!\210\353*\354\355\356\307\211$\210\306\357!\210\306\360!\210\306\361!\210\306\362!\210\306\363!\210\322 3\306\364!\210\3654\354\366\367\334\307$\210\306\370!\210\3348)\371\372!\203\366\372\373!\207\374\373!\207" [delay-mode-hooks major-mode mode-name comint-mode-map comint-mode-syntax-table comint-mode-abbrev-table make-local-variable t kill-all-local-variables comint-mode "Comint" use-local-map set-syntax-table (":%s") comint-last-input-start point-min-marker comint-last-input-end comint-last-output-start make-marker comint-last-prompt-overlay comint-prompt-regexp comint-input-ring-size comint-input-ring comint-input-ring-file-name boundp make-ring comint-input-ring-index comint-save-input-ring-index nil comint-matching-input-from-input-string comint-input-autoexpand comint-input-ignoredups comint-delimiter-argument-list comint-completion-fignore comint-get-old-input comint-input-filter comint-input-sender comint-eol-on-send comint-scroll-to-bottom-on-input comint-move-point-for-output comint-scroll-show-maximum-output comint-stored-incomplete-input scroll-conservatively 10000 add-hook pre-command-hook comint-preinput-scroll-to-bottom comint-ptyp comint-process-echoes comint-file-name-chars comint-file-name-quote-list comint-accum-marker font-lock-defaults (nil t) change-major-mode-hook font-lock-defontify next-line-add-newlines fboundp run-mode-hooks comint-mode-hook run-hooks local-abbrev-table mode-line-process] 5 (#$ . 19190) nil]) #@176 Return non-nil if there is a living process associated w/buffer BUFFER. Living means the status is `open', `run', or `stop'. BUFFER can be either a buffer or the name of one. (defalias 'comint-check-proc #[(buffer) "\302!\211\205 \303 !\304>)\207" [buffer proc get-buffer-process process-status (open run stop)] 3 (#$ . 22896)]) #@554 Make a Comint process NAME in BUFFER, running PROGRAM. If BUFFER is nil, it defaults to NAME surrounded by `*'s. PROGRAM should be either a string denoting an executable program to create via `start-process', or a cons pair of the form (HOST . SERVICE) denoting a TCP connection to be opened via `open-network-stream'. If there is already a running process in that buffer, it is not restarted. Optional fourth arg STARTFILE is the name of a file to send the contents of to the process. If PROGRAM is a string, any more args are arguments to PROGRAM. (defalias 'make-comint-in-buffer #[(name buffer program &optional startfile &rest switches) "\305\306!\204\n\307\310!\210\311\206\312 \312Q!\313!\2041rq\210\314\315!\204(\315 \210)\316 \n \f%\210\207" [buffer name program startfile switches fboundp start-process error "Multi-processing is not supported for this system" get-buffer-create "*" comint-check-proc derived-mode-p comint-mode comint-exec] 6 (#$ . 23235)]) #@559 Make a Comint process NAME in a buffer, running PROGRAM. The name of the buffer is made by surrounding NAME with `*'s. PROGRAM should be either a string denoting an executable program to create via `start-process', or a cons pair of the form (HOST . SERVICE) denoting a TCP connection to be opened via `open-network-stream'. If there is already a running process in that buffer, it is not restarted. Optional third arg STARTFILE is the name of a file to send the contents of the process to. If PROGRAM is a string, any more args are arguments to PROGRAM. (defalias 'make-comint #[(name program &optional startfile &rest switches) "\304\305\306 \n &\207" [name program startfile switches apply make-comint-in-buffer nil] 7 (#$ . 24224)]) #@285 Run PROGRAM in a Comint buffer and switch to it. The buffer name is made by surrounding the file name of PROGRAM with `*'s. The file name is used to make a symbol name, such as `comint-sh-hook', and any hooks on this symbol are run in the buffer. See `make-comint' and `comint-exec'. (defalias 'comint-run #[(program) "\302!\303\304 \"!\210\305\306\307 \310Q!!)\207" [program name file-name-nondirectory switch-to-buffer make-comint run-hooks intern-soft "comint-" "-hook"] 5 (#$ . 24973) "sRun program: "]) #@339 Start up a process named NAME in buffer BUFFER for Comint modes. Runs the given COMMAND with SWITCHES with output to STARTFILE. Blasts any old process running in the buffer. Doesn't set the buffer mode. You can use this to cheaply run a series of processes in the same Comint buffer. The hook `comint-exec-hook' is run after each exec. (defalias 'comint-exec #[(buffer name command startfile switches) "rq\210\306!\211\203\307 !\210)\n:\203!\310 \n@\nA$\202'\311 \n\f$\312 \313\"\210\314\315!\210  db\210\316 !`\317\223\210\203^\320\321!\210db\210\322!\210`d{`d|\210\323 \"\210\324\325!\210*\207" [buffer proc command name switches process-connection-type get-buffer-process delete-process open-network-stream comint-exec-1 set-process-filter comint-output-filter make-local-variable comint-ptyp process-mark nil sleep-for 1 insert-file-contents comint-send-string run-hooks comint-exec-hook startfile] 6 (#$ . 25491)]) (defalias 'comint-exec-1 #[(name buffer command switches) "\306\300!\203\203\307\310\311\312\313 \"E\202\314\311\315\313 \"D\316\317!?\205%\320C\244\311\321 \"C\244\n\244\322 !\2038 \2029\323\324\211\211\211 !\325\"!\203S #B\202U##\326\327$%\"&%!)\330!!\211'@ 'A)\331\332 !!\203\206\333 \334\" \335 \203\227 \204\227\333 \336\"\335\f\203\243\337! #\210!.\207" [system-uses-terminfo emacs-version process-environment default-directory changed encoding boundp "TERM=dumb" "TERMCAP=" format "COLUMNS=%d" window-width "TERM=emacs" "TERMCAP=emacs:co#%d:tc=unknown:" getenv "EMACS" "EMACS=t" "INSIDE_EMACS=%s,comint" file-accessible-directory-p "/" nil file-name-directory apply start-process process-coding-system vectorp coding-system-eol-type coding-system-change-eol-conversion dos t unix set-process-coding-system decoding proc command exec-path name buffer switches coding-systems] 7]) #@195 In a Comint buffer, set the current input to the previous input at point. If there is no previous input at point, run the command specified by the global keymap (usually `mouse-yank-at-point'). (defalias 'comint-insert-input #[(event) "\211:\203\3068:\203\306\202\3078\202\310 `\311\312F)\313 8\2067\307 8:\2034\307 8@\2027\307 8)\314\211\310 \315\316\317 \"r\320\216\321\211:\203c\3068:\203]\306\202^\3078\202i\310 `\311\312F)\312 8)\322\"\210\323\f!\211\203~\324\f!,\203\212 \302=\204\277\325  \326 !\205\233 \211GSH\211!\205\251\327\"\330!!\"\211#\205\273#\331=?\205\273\332#!+\202\323db\210\333!\206\316\334\335p!!`|\210\nc+\207" [event position input field pos save-selected-window-alist 2 1 selected-window (0 . 0) 0 5 nil mapcar #[(frame) "\301!D\207" [frame frame-selected-window] 3] frame-list ((byte-code "\305\211\203/\n@\306 @!\203(\307 \211A@)!\203(\310 @ \211A@)\"\210\nA\211\204*\307\f!\203;\311\f\312\"\210\305\207" [save-selected-window-alist elt #1=#:--cl-dolist-temp-- x save-selected-window-window nil frame-live-p window-live-p set-frame-selected-window select-window norecord] 4)) select-window norecord field-at-pos field-string-no-properties this-command-keys vectorp lookup-key vector comint-insert-input call-interactively marker-position process-mark get-buffer-process save-selected-window-window comint-accum-marker keys last-key global-map fun] 6 (#$ . 27376) "e"]) #@713 Set the buffer's `comint-input-ring' from a history file. The name of the file is given by the variable `comint-input-ring-file-name'. The history ring is of size `comint-input-ring-size', regardless of file size. If `comint-input-ring-file-name' is nil this function does nothing. If the optional argument SILENT is non-nil, we say nothing about a failure to read the history file. This function is useful for major mode commands and mode hooks. The commands stored in the history file are separated by the `comint-input-ring-separator', and entries that match `comint-input-history-ignore' are ignored. The most recent command comes last. See also `comint-input-ignoredups' and `comint-write-input-ring'. (defalias 'comint-read-input-ring #[(&optional silent) "\203\n\306\232\203\f\307\207\310!\204 \206\265\311\312\"\207\313\314!\315 \316!\317\216\212\nq\210~\210\320 \210\321 !\210db\210\307\211\211\fW\203\253\322\307\323#\203\253\315\224\211\203\253\322\307\323#\203o\315\225\202re{b\210\324\"\204G\203\235\325!\204\235\326\315\"\230\204G\327\"\210\fT\211\202H- \307\211!-\207" [comint-input-ring-file-name silent history-buf file count comint-input-ring-size "" nil file-readable-p message "Cannot read history file %s" get-buffer-create " *temp*" 0 make-ring ((kill-buffer history-buf)) erase-buffer insert-file-contents re-search-backward t string-match ring-empty-p ring-ref ring-insert-at-beginning size ring history end start comint-input-ring-separator comint-input-history-ignore comint-input-ignoredups comint-input-ring comint-input-ring-index] 5 (#$ . 28849)]) #@355 Writes the buffer's `comint-input-ring' to a history file. The name of the file is given by the variable `comint-input-ring-file-name'. The original contents of the file are lost if `comint-input-ring' is not empty. If `comint-input-ring-file-name' is nil this function does nothing. Useful within process sentinels. See also `comint-read-input-ring'. (defalias 'comint-write-input-ring #[nil "\203\306\232\204 \203\307 !\203\310\207\311!\204!\312\313\"\207\314\315! \316 !\212\nq\210\317 \210 \320V\203I S\321 \"\261\210\2024\322\323 \310\f\310\324%\210\325\310!-\207" [comint-input-ring-file-name comint-input-ring history-buf ring file index "" ring-empty-p nil file-writable-p message "Cannot write history file %s" get-buffer-create " *Temp Input History*" ring-length erase-buffer 0 ring-ref write-region buffer-string no-message kill-buffer comint-input-ring-separator] 6 (#$ . 30515)]) #@61 Choose the input history entry that point is in or next to. (defalias 'comint-dynamic-list-input-ring-select #[nil "\306\211\211 m\204\307`\310\"\203``To\204.\307`S\310\"\203.`S`\2047\311\312!\210\313\310\"\314 \310\"\206Fd {\315!\210\316\f \n#-\207" [completion-reference-buffer completion-base-size base-size buffer completion end nil get-text-property mouse-face error "No history entry here" previous-single-property-change next-single-property-change set-window-configuration choose-completion-string beg comint-dynamic-list-input-ring-window-conf] 5 (#$ . 31442) nil]) #@49 List in help buffer the buffer's input history. (defalias 'comint-dynamic-list-input-ring #[nil "\306!\203\f\307!\203\310\311!\207\312\313\314!S\315 \n\316Y\2030\317\n\"\fB\nS\211\202 \220\320\f!\210 q\210\321 \322 \323 \"\210\324 \325\326#\210\327 !\210)\330y\210\331\332\312\333#\205_\334\335!\210\202P\221\210\336\316!\210\310\337!\210 #\340 \211$\341=\203|\342 !\202\202$C\211%-\207" [comint-input-ring conf index history-buffer history keymap ring-p ring-empty-p message "No history" nil " *Input History*" ring-length current-window-configuration 0 ring-ref display-completion-list make-sparse-keymap set-keymap-parent current-local-map define-key " " comint-dynamic-list-input-ring-select use-local-map 3 search-backward "completion" move replace-match "history reference" sit-for "Hit space to flush" read-event 32 set-window-configuration comint-dynamic-list-input-ring-window-conf ch unread-command-events] 6 (#$ . 32056) nil]) #@52 Return list of regexp and prefix arg using PROMPT. (defalias 'comint-regexp-arg #[(prompt) "\305 \306\211\211\303%\211\307\230\203 \211A@\240\202\n\310\f!*D\207" [last-command prompt regexp minibuffer-history-search-history current-prefix-arg read-from-minibuffer nil "" prefix-numeric-value] 7 (#$ . 33025)]) (defalias 'comint-search-arg #[(arg) "\303 \204 \304\305!\207\203\306!\203\304\307!\207\310 !\203!\311\312\207 \207" [comint-input-ring arg comint-input-ring-index comint-after-pmark-p error "Not at command line" ring-empty-p "Empty input ring" zerop nil 1] 2]) #@27 Restore unfinished input. (defalias 'comint-restore-input #[nil "\205\302 \210 G\303V\203 c\210\304\305!\210\306\211\207" [comint-input-ring-index comint-stored-incomplete-input comint-delete-input 0 message "Input restored" nil] 2 (#$ . 33619) nil]) #@77 Index to start a directional search, starting at `comint-input-ring-index'. (defalias 'comint-search-start #[(arg) "\203\303 \304V\203\305\202\306\\\307\n!\"\207 \304Y\203\304\207\307\n!S\207" [comint-input-ring-index arg comint-input-ring mod 0 1 -1 ring-length] 4 (#$ . 33882)]) #@97 Return the string ARG places along the input ring. Moves relative to `comint-input-ring-index'. (defalias 'comint-previous-input-string #[(arg) "\303 \203\304\n \\\305!\"\202\n\"\207" [comint-input-ring comint-input-ring-index arg ring-ref mod ring-length] 6 (#$ . 34179)]) #@54 Cycle backwards through input history, saving input. (defalias 'comint-previous-input #[(arg) "\203& \304W\203\304=\204 \304V\203&\305\n!S=\203& \203&\306 \207\307\310 \"\207" [comint-input-ring-index arg comint-input-ring comint-stored-incomplete-input 0 ring-length comint-restore-input comint-previous-matching-input "."] 3 (#$ . 34465) "*p"]) #@39 Cycle forwards through input history. (defalias 'comint-next-input #[(arg) "\301[!\207" [arg comint-previous-input] 2 (#$ . 34829) "*p"]) #@113 Return the string matching REGEXP ARG places along the input ring. Moves relative to `comint-input-ring-index'. (defalias 'comint-previous-matching-input-string #[(regexp arg) "\304 \"\211\205 \305 \n\")\207" [regexp arg pos comint-input-ring comint-previous-matching-input-string-position ring-ref] 4 (#$ . 34975)]) #@122 Return the index matching REGEXP ARG places along the input ring. Moves relative to START, or `comint-input-ring-index'. (defalias 'comint-previous-matching-input-string-position #[(regexp arg &optional start) "\306!\203\f\307!\203\310\311!\210\312!\n\313V\203\314\202\315\316\f\206(\317\n! Z \"\320\211\n\313U\204\200\204\200 \316 \\ \" W\203n\204n\321\322 \"\"\204n\316 \\ \"\211U\202H\n\313V\203y\nS\202{\nT\211\2024\321\322 \"\"\205\214 -\207" [comint-input-ring len arg motion start n ring-p ring-empty-p error "No history" ring-length 0 1 -1 mod comint-search-start nil string-match ring-ref tried-each-ring-item prev regexp] 6 (#$ . 35302)]) #@66 Delete all input between accumulation or process mark and point. (defalias 'comint-delete-input #[nil "\301!\206 \302\303p!!d|\207" [comint-accum-marker marker-position process-mark get-buffer-process] 3 (#$ . 36007)]) #@218 Search backwards through input history for match for REGEXP. (Previous history elements are earlier commands.) With prefix argument N, search for Nth previous match. If N is negative, find the next or Nth next match. (defalias 'comint-previous-matching-input #[(regexp n) "\306!\307 \"\211\204\310\311!\202+ \204\f \n\312\313\nT\"\210\314 \210\315\n\"c)\207" [n regexp pos comint-input-ring-index comint-get-old-input comint-stored-incomplete-input comint-search-arg comint-previous-matching-input-string-position error "Not found" message "History item: %d" comint-delete-input ring-ref comint-input-ring] 4 (#$ . 36235) (comint-regexp-arg "Previous input matching (regexp): ")]) #@227 Search forwards through input history for match for REGEXP. (Later history elements are more recent commands.) With prefix argument N, search for Nth following match. If N is negative, find the previous or Nth previous match. (defalias 'comint-next-matching-input #[(regexp n) "\302 [\"\207" [regexp n comint-previous-matching-input] 3 (#$ . 36936) (comint-regexp-arg "Next input matching (regexp): ")]) #@238 Search backwards through input history for match for current input. (Previous history elements are earlier commands.) With prefix argument N, search for Nth previous match. If N is negative, search forwards for the -Nth following match. (defalias 'comint-previous-matching-input-from-input #[(n) "\305>\204\306 !\206\307\310p!!`{\311\312\313\314\n!P\f\"\207" [last-command comint-accum-marker comint-matching-input-from-input-string comint-input-ring-index n (comint-previous-matching-input-from-input comint-next-matching-input-from-input) marker-position process-mark get-buffer-process nil comint-previous-matching-input "^" regexp-quote] 4 (#$ . 37348) "p"]) #@243 Search forwards through input history for match for current input. (Following history elements are more recent commands.) With prefix argument N, search for Nth following match. If N is negative, search backwards for the -Nth previous match. (defalias 'comint-next-matching-input-from-input #[(n) "\301[!\207" [n comint-previous-matching-input-from-input] 2 (#$ . 38025) "p"]) #@837 Expand input command history references before point. Expansion is dependent on the value of `comint-input-autoexpand'. This function depends on the buffer's idea of the input history, which may not match the command interpreter's idea, assuming it has one. Assumes history syntax is like typical Un*x shells'. However, since Emacs cannot know the interpreter's idea of input line numbers, assuming it has one, it cannot expand absolute input line number references. If the optional argument SILENT is non-nil, never complain even if history reference seems erroneous. If the optional argument START is non-nil, that specifies the start of the text to scan for history references, rather than the logical beginning of line. See `comint-magic-space' and `comint-replace-by-expanded-history-before-point'. Returns t if successful. (defalias 'comint-replace-by-expanded-history #[(&optional silent start) "\2053 \203\212\306 \210\307\n\310P!)\202\"\311`\312\"?\2053\313\314\315 \"\2053\316 \317\f \"\210 \316 U)?\207" [comint-input-autoexpand comint-use-prompt-regexp comint-prompt-regexp previous-modified-tick silent start beginning-of-line looking-at "!\\|\\^" get-char-property field string-match "!\\|^\\^" field-string buffer-modified-tick comint-replace-by-expanded-history-before-point] 3 (#$ . 38410) nil]) #@272 Expand directory stack reference before point. See `comint-replace-by-expanded-history'. Returns t if successful. If the optional argument START is non-nil, that specifies the start of the text to scan for history references, rather than the logical beginning of line. (defalias 'comint-replace-by-expanded-history-before-point #[(silent &optional start) "\212\306 `Z\206 \307 b\210\310\306 Zw\210`\306 ZW\205w\311h\312U\204/\313`\"\2036`Tb\210\202\314\315!\203G\316\225b\210\317\320!\210\202\314\321!\203\203\322\323\224\323\225{!S\211\324\f!X\203w\325\326\327 !\330\224\330\225#\331\211#\210 \317\332 T\"\210\202\316\225b\210\317\333!\210)\202\314\334!\204\217\314\335!\203\244\325\326\327\316!\323\224\323\225#\331\211#\210\317\336!\210\202\314\337!\203&\323\224\323\2250\330\2241\330\22521\206\277 2\206\3060{3\340 4\341\216\314\342!*\203\332\343\202\333\3445\340 4\345\216\3465\3473!P\323\"*\2116\204\316\225b\2107\204!\317\350!\210\351 \210\202!6\325\326\352\f6\"\353\224\353\225#\331\211#\210\317\3326T\"\210.\202\314\354!\203q\323\224\323\225{\330\224\330\225{\311689\325\327\316!\331\211#\210`6\316\224b\210\35596\331#\204b7\204m\356\350!\210\202m\3258\331\211#\210\317\357!\210+\202\323u\210\202+\207" [start toend comint-input-ring-index number comint-input-ring mb1 line-end-position comint-line-beginning-position "^!^" nil 92 comint-within-quotes looking-at "![0-9]+\\($\\|[^-]\\)" 0 message "Absolute reference cannot be expanded" "!-\\([0-9]+\\)\\(:?[0-9^$*-]+\\)?" string-to-number 1 ring-length replace-match comint-args comint-previous-input-string 2 t "History item: %d" "Relative reference exceeds input history size" "!!?:?\\([0-9^$*-]+\\)" "!!" "History item: previous" "!\\??\\({\\(.+\\)}\\|\\(\\sw+\\)\\)\\(:?[0-9^$*-]+\\)?" match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) "!\\?" "" "^" ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) comint-previous-matching-input-string-position regexp-quote "Not found" ding ring-ref 4 "\\^\\([^^]+\\)\\^?\\([^^]*\\)\\^?" search-forward error "History item: substituted" me1 mb2 me2 exp save-match-data-internal pref pos silent new old] 6 (#$ . 39745)]) #@145 Expand input history references before point and insert ARG spaces. A useful command to bind to SPC. See `comint-replace-by-expanded-history'. (defalias 'comint-magic-space #[(arg) "\301 \210\302!\207" [arg comint-replace-by-expanded-history self-insert-command] 2 (#$ . 42033) "p"]) #@92 Return t if the number of quotes between BEG and END is odd. Quotes are single and double. (defalias 'comint-within-quotes #[(beg end) "\304\305 #\304\306 #\307 \310\"\311U\206\307\n\310\"\311U*\207" [beg end countdq countsq comint-how-many-region "\\(^\\|[^\\\\]\\)'" "\\(^\\|[^\\\\]\\)\"" mod 2 1] 5 (#$ . 42325)]) #@54 Return number of matches for REGEXP from BEG to END. (defalias 'comint-how-many-region #[(regexp beg end) "\305\212\306 \307\216\nb\210\310 \f\311#\203T\202 +)\207" [count save-match-data-internal beg regexp end 0 match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) re-search-forward t] 4 (#$ . 42654)]) (defalias 'comint-args #[(string begin end) "\306 \307\216 \204\310\n\311\312#\202k f\313=\203 T\202 {\314\315\f\"\203,\316\202D\314\317\f\"\2037\311\202D\f\320\230\203A\312\202D\321\f!\314\322\f\"\203P\312\202b\314\323\f\"\203a\321\f\311\225\312O!\202b \310\n #+*\207" [save-match-data-internal begin string end range nth match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) comint-arguments 0 nil 58 string-match "^[*^]" 1 "^-" "$" string-to-number "[-*$]$" "-" mth] 4]) #@310 Return a list of arguments from ARG. Break it up at the delimiters in `comint-delimiter-argument-list'. Returned list is backwards. Characters with non-nil values of the text property `literal' are assumed to have literal values (e.g., backslash-escaped characters), and are not considered to be delimiters. (defalias 'comint-delim-arg #[(arg) "\204 C\207\306\307 G \nW\203g H \211\n>\203?\310 \311 #\204? \nW\203\\ H\n=\203\\ T\211\202* \nW\203\\ H>\203U\310 \311 #\203\\ T\211\202@ O\fB*\202\f+\207" [comint-delimiter-argument-list arg len pos args start nil 0 get-text-property literal char] 5 (#$ . 43560)]) #@427 Return from STRING the NTH to MTH arguments. NTH and/or MTH can be nil, which means the last argument. Returned arguments are separated by single spaces. We assume whitespace separates arguments, except within quotes and except for a space or tab that immediately follows a backslash. Also, a run of one or more of a single character in `comint-delimiter-argument-list' is a separate argument. Argument 0 is the command name. (defalias 'comint-arguments #[(string nth mth) "\306\307!\205\307 ?\211\203\310\202\311\211\312P\203 \313\202!\314\315\316\211\315\211\315\203?X\203\251\317\n #\203\251\203\\\314\224\203\\\320\314\224\314\225\321\322%\210\203w \316\224U\203w\316\225\206r \224\2022\203\227 O\203\220\fB\202\226\323!\f\244\fG \224\316\224\316\225\2022\203\311 O\203\302\fB\202\310\323!\f\244\fG\206\325S\203\343ZS\202\344\316\324\325\f\233\237\233\326#.\f\207" [backslash-escape first argpart quote-subexpr args pos fboundp w32-shell-dos-semantics "[^ \n \"'`\\]\\|\\(\\\\.\\)\\|" "[^ \n \"'`]+\\|" "\\(\"\\([^\"\\]\\|\\\\.\\)*\"\\|'[^']*'\\|`[^`]*`\\)" 2 1 nil 0 string-match put-text-property literal t comint-delim-arg mapconcat #[(a) "\207" [a] 1] " " count beg str quotes mth string nth m n] 7 (#$ . 44211)]) #@90 Add CMD to the input history. Ignore duplicates if `comint-input-ignoredups' is non-nil. (defalias 'comint-add-to-input-history #[(cmd) " !\205$\n\203 \304 !\203 \305 !\204 \306 \307\" \230?\205$\310 \"\207" [comint-input-filter cmd comint-input-ignoredups comint-input-ring ring-p ring-empty-p ring-ref 0 ring-insert] 3 (#$ . 45557)]) #@2268 Send input to process. After the process output mark, sends all text from the process mark to point as input to the process. Before the process output mark, calls value of variable `comint-get-old-input' to retrieve old input, copies it to the process mark, and sends it. This command also sends and inserts a final newline, unless NO-NEWLINE is non-nil. Any history reference may be expanded depending on the value of the variable `comint-input-autoexpand'. The list of function names contained in the value of `comint-input-filter-functions' is called on the input before sending it. The input is entered into the input history ring, if the value of variable `comint-input-filter' returns non-nil when called on the input. If variable `comint-eol-on-send' is non-nil, then point is moved to the end of line before sending the input. After the input has been sent, if `comint-process-echoes' is non-nil, then `comint-send-input' waits to see if the process outputs a string matching the input, and if so, deletes that part of the output. If ARTIFICIAL is non-nil, it inhibits such deletion. Callers sending input not from the user should use ARTIFICIAL = t. The values of `comint-get-old-input', `comint-input-filter-functions', and `comint-input-filter' are chosen according to the command interpreter running in the buffer. E.g., If the interpreter is the csh, `comint-get-old-input' is the default: If `comint-use-prompt-regexp' is nil, then either return the current input field, if point is on an input field, or the current line, if point is on an output field. If `comint-use-prompt-regexp' is non-nil, then return the current line with any initial string matching the regexp `comint-prompt-regexp' removed. `comint-input-filter-functions' monitors input for "cd", "pushd", and "popd" commands. When it sees one, it cd's the buffer. `comint-input-filter' is the default: returns t if the input isn't all white space. If the Comint is Lucid Common Lisp, `comint-get-old-input' snarfs the sexp ending at point. `comint-input-filter-functions' does nothing. `comint-input-filter' returns nil if the input matches input-filter-regexp, which matches (1) all whitespace (2) :a, :c, etc. Similarly for Soar, Scheme, etc. (defalias 'comint-send-input #[(&optional no-newline artificial) "\306p!\211\204\307\310!\202t~\210\311!`\312 !Y\203)\n\203#\313\210 `{\2024  b\210\fc\210\f) \314=\204@ \202H\315\316 \"\210 `{\f \317=\204V\f\202m\315\316 \"\210 `{`!\fc\210 !|\210\f*\"\204w\320c\210\321!\210\322\323\"\203\210\f\202\214\f\324P\"\210\312 !\"\203\232`\202\234`S\316#$%$%V\203\300\325%$\326#\210&\204\300\325%$\327#\210\"\204\322&\204\322\325$\211T\330#\210+\331 \210'(\313') \313\223\210*`\313\223\210\311!`\313\223\210+\313\211\223\210\",-\f\"\210).\203o/\204o*)Z0\332!\2036*0\\dV\2036\333\334\313)d0Z\313*d&!\204*0\\dX\203n\333\334\313)*\313*\2110\\&!\203n\3161*\2110\\|\2102\203m\212*b\210\335 \210)))\322\336\337\",)\207" [proc pmark comint-eol-on-send comint-get-old-input copy intxt get-buffer-process error "Current buffer has no process" process-mark marker-position nil input comint-replace-by-expanded-history t history 10 comint-add-to-input-history run-hook-with-args comint-input-filter-functions "\n" add-text-properties (front-sticky t font-lock-face comint-highlight-input) (mouse-face highlight help-echo "mouse-2: insert after prompt as new input" field input) (rear-nonsticky t field boundary inhibit-line-move-field-capture t) comint-snapshot-last-prompt accept-process-output zerop compare-buffer-substrings comint-update-fence comint-output-filter-functions "" comint-input-autoexpand start no-newline inhibit-modification-hooks end beg comint-use-prompt-regexp comint-input-ring-index comint-save-input-ring-index comint-last-input-start comint-last-input-end comint-accum-marker comint-input-sender-no-newline comint-input-sender comint-process-echoes artificial echo-len inhibit-read-only comint-prompt-read-only] 10 (#$ . 45908) nil]) #@599 List of functions to call before inserting Comint output into the buffer. Each function gets one argument, a string containing the text received from the subprocess. It should return the string to insert, perhaps the same string that was received, or perhaps a modified or transformed string. The functions on the list are called sequentially, and each one is given the string returned by the previous one. The string returned by the last function is the text that is actually inserted in the redirection buffer. You can use `add-hook' to add functions to this list either globally or locally. (defvar comint-preoutput-filter-functions nil (#$ . 50025)) #@114 If nil, Comint will interpret `carriage control' characters in output. See `comint-carriage-motion' for details. (defvar comint-inhibit-carriage-motion nil (#$ . 50690)) (byte-code "\301B\302\301!\204\303\301\304\"\210\304\207" [current-load-list comint-last-prompt-overlay default-boundp set-default nil] 3) #@149 `snapshot' any current `comint-last-prompt-overlay'. Freeze its attributes in place, even when more input comes along and moves the prompt overlay. (defalias 'comint-snapshot-last-prompt #[nil "\205\303\211\304\305!\306!\307!#*\207" [comint-last-prompt-overlay inhibit-modification-hooks inhibit-read-only t add-text-properties overlay-start overlay-end overlay-properties] 5 (#$ . 51010)]) #@244 Interpret carriage control characters in the region from START to END. Translate carriage return/linefeed sequences to linefeeds. Make single carriage returns delete to the beginning of the line. Make backspaces delete the previous character. (defalias 'comint-carriage-motion #[(start end) "\212b\210\305 w ZW\205O\306 \307\216\214~\210\310\211\311\312 \310#\203)\313\314!\210\202b\210\315\316 \310#\203<`\317 |\210\202,b\210\315\320 \310#\205N\313\321!\210\202?-)\207" [start end save-match-data-internal inhibit-read-only inhibit-field-text-motion "^ " match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) t re-search-forward " $" delete-char -1 search-forward " " line-beginning-position "" -2] 4 (#$ . 51416)]) (defalias 'comint-output-filter #[(process string) "\306!\n\205\230 \205\230\307 !\205\230r q\210 \211\203O\n\203O\f@\310=\203C\311\303!\211\203?\n\203?\f@\n!\fA\211\204/)\202H\f@\n!\fA\211\204)\310\312 #\313 \310\"\210\214~\210\314!b\210$`\315\223\210\316\n!\210`\nGZ%$%\315\223\210&\203\217\317&!`\232\203\217&%\315\223\210\320`!\315'\211(\203\316(@'\321'!`U\203\305\322'!)\323'%)`U\203\300%\202\302)#\210)(A\211(\204\233*\320`S!\315'\211*\203*@'\322'!`U\203\370\323'\321'!%^%#\210*A\211*\204\334+\314!`\315\223\210+\204\324$`\"\210 b\210\325\326\n\"\210 `\315\223\210\314!b\210,\2049\310\211-#\327$`\330#\210*\212\331y\210`)\310\211-#./\203me.U\204f\332.S\333\"\204f\334.S.\333\335$\210\327.`\336#\210n\203v0\203\2240\203\206\3230.`#\210\202\224\337.`\"0\3400\341\342#\210+ b,)\207" [process oprocbuf string comint-preoutput-filter-functions functions saved-point process-buffer buffer-name t default-value point-marker set-marker-insertion-type process-mark nil insert-before-markers marker-position overlays-at overlay-start overlay-end move-overlay comint-carriage-motion run-hook-with-args comint-output-filter-functions add-text-properties (rear-nonsticky t field output inhibit-line-move-field-capture t) 0 get-text-property read-only put-text-property fence (read-only t rear-nonsticky t front-sticky (read-only)) make-overlay overlay-put font-lock-face comint-highlight-prompt inhibit-read-only comint-last-output-start old-point comint-last-input-end over #1=#:--cl-dolist-temp-- end #2=#:--cl-dolist-temp-- comint-inhibit-carriage-motion comint-use-prompt-regexp inhibit-modification-hooks prompt-start comint-prompt-read-only comint-last-prompt-overlay] 7]) #@386 Go to the end of buffer in all windows showing it. Movement occurs if point in the selected window is not after the process mark, and `this-command' is an insertion command. Insertion commands recognized are `self-insert-command', `comint-magic-space', `yank', and `hilit-yank'. Depends on the value of `comint-scroll-to-bottom-on-input'. This function should be a pre-command hook. (defalias 'comint-preinput-scroll-to-bottom #[nil "\2052 \306>\2052\307 p\310 !\f\2051`\311\f!W\2051 \312=\203,db\2021\313\314\315\316#,\207" [comint-scroll-to-bottom-on-input this-command selected current process scroll (self-insert-command comint-magic-space yank hilit-yank) selected-window get-buffer-process process-mark this walk-windows #[(window) "\304! =\205\n\305=\204\n\306=\205\307!\210db\210\307 !\207" [window current scroll selected window-buffer t all select-window] 2] nil t] 4 (#$ . 53973)]) #@295 Go to the end of buffer in some or all windows showing it. Does not scroll if the current line is the last line in the buffer. Depends on the value of `comint-move-point-for-output' and `comint-scroll-show-maximum-output'. This function should be in the list `comint-output-filter-functions'. (defalias 'comint-postoutput-scroll-to-bottom #[(string) "\305 p\306 ! \307\216\n\205\310\311\312\313#-\207" [selected current process comint-move-point-for-output scroll selected-window get-buffer-process ((set-buffer current)) walk-windows #[(window) "\306! =\205c\307!\210`\310\n!W\203I \311=\204D \312=\204D \313=\203,\f=\204D \314=\2038\f=\203D\315 !\203I` Y\203I\310\n!b\210\203``dU\203`\212db\210\316\317Z!\210)\307\f!\207" [window current process scroll selected comint-last-output-start window-buffer select-window process-mark t all this others marker-position recenter -1 comint-scroll-show-maximum-output scroll-margin] 3] nil t] 4 (#$ . 54895)]) #@132 Truncate the buffer to `comint-buffer-maximum-size'. This function could be on `comint-output-filter-functions' or bound to a key. (defalias 'comint-truncate-buffer #[(&optional string) "\212\302\303p!!b\210[y\210\304 \210\305e`|*\207" [comint-buffer-maximum-size inhibit-read-only process-mark get-buffer-process beginning-of-line t] 3 (#$ . 55881) nil]) #@141 Strip trailing `^M' characters from the current output group. This function could be on `comint-output-filter-functions' or bound to a key. (defalias 'comint-strip-ctrl-m #[(&optional string) "\301\302p!!\212\303\304\305\217\210\306\307\310#\205\311\312\310\211#\210\202\f*\207" [pmark process-mark get-buffer-process nil (byte-code "t\203\202 b\207" [comint-last-input-end comint-last-output-start] 1) ((error)) re-search-forward " +$" t replace-match ""] 4 (#$ . 56246) nil]) (defalias 'shell-strip-ctrl-m 'comint-strip-ctrl-m) #@56 Put the end of the buffer at the bottom of the window. (defalias 'comint-show-maximum-output #[nil "db\210\301\302Z!\207" [scroll-margin recenter -1] 3 (#$ . 56792) nil]) #@350 Default for `comint-get-old-input'. If `comint-use-prompt-regexp' is nil, then either return the current input field, if point is on an input field, or the current line, if point is on an output field. If `comint-use-prompt-regexp' is non-nil, then return the current line with any initial string matching the regexp `comint-prompt-regexp' removed. (defalias 'comint-get-old-input-default #[nil "\301 \302\303\"\304=\203\305!\202\306 \210\307`\310 \")\207" [bof field-beginning get-char-property field input field-string-no-properties comint-bol buffer-substring-no-properties line-end-position] 3 (#$ . 56971)]) #@114 Insert after prompt old input at point as new input to be edited. Calls `comint-get-old-input' to get old input. (defalias 'comint-copy-old-input #[nil " \303p! \204\304\305!\202\306 !b\210\nc*\207" [comint-get-old-input process input get-buffer-process error "Current buffer has no process" process-mark] 3 (#$ . 57598) nil]) #@130 Skip past the text matching regexp `comint-prompt-regexp'. If this takes us past the end of the current line, don't skip at all. (defalias 'comint-skip-prompt #[nil "\301!\205\302\225\303 X\205\302\225b\207" [comint-prompt-regexp looking-at 0 line-end-position] 2 (#$ . 57939)]) #@55 Return t if point is after the process output marker. (defalias 'comint-after-pmark-p #[nil "\301\302p!!\303!`X)\207" [pmark process-mark get-buffer-process marker-position] 3 (#$ . 58229)]) #@146 Default function for sending to PROC input STRING. This just sends STRING plus a newline. To override this, set the hook `comint-input-sender'. (defalias 'comint-simple-send #[(proc string) "\303 \"\210\n\203 \304\230?\205\305 \207\303\306\"\207" [proc string comint-input-sender-no-newline comint-send-string "" process-send-eof "\n"] 3 (#$ . 58429)]) #@245 Return the buffer position of the beginning of the line, after any prompt. If `comint-use-prompt-regexp' is non-nil, then the prompt skip is done by skipping text matching the regular expression `comint-prompt-regexp', a buffer local variable. (defalias 'comint-line-beginning-position #[nil "\203\212\301 \210\302 \210`)\207\303\304 \305 \"\207" [comint-use-prompt-regexp beginning-of-line comint-skip-prompt constrain-to-field line-beginning-position line-end-position] 3 (#$ . 58796)]) #@313 Go to the beginning of line, then skip past the prompt, if any. If prefix argument is given (\[universal-argument]) the prompt is not skipped. If `comint-use-prompt-regexp' is non-nil, then the prompt skip is done by skipping text matching the regular expression `comint-prompt-regexp', a buffer local variable. (defalias 'comint-bol #[(&optional arg) "\203\301y\207\302 b\207" [arg 0 comint-line-beginning-position] 1 (#$ . 59295) "P"]) (defalias 'comint-read-noecho #[(prompt &optional ignore) "\301!\207" [prompt read-passwd] 2]) #@262 Read a string without echoing. Then send it to the process running in the current buffer. The string is sent using `comint-input-sender'. Security bug: your string can still be temporarily recovered with \[view-lossage]; `clear-this-command-keys' can fix that. (defalias 'send-invisible #[(&optional prompt) "\305p!\306\307 !p=\203\310\202\311\312p\"\211\203:\313\n\206!\314P!\211;\2033\315 \210\f \"\2026\316\317!)\202>\320\321p\"*\207" [prefix proc prompt str comint-input-sender get-buffer-process window-buffer selected-window "" format "(In buffer %s) " read-passwd "Non-echoed text: " comint-snapshot-last-prompt message "Warning: text will be echoed" error "Buffer %s has no process"] 5 (#$ . 59839) "P"]) #@304 Prompt in the minibuffer for password and send without echoing. This function uses `send-invisible' to read and send a password to the buffer's process if STRING contains a password prompt defined by `comint-password-prompt-regexp'. This function could be in the list `comint-output-filter-functions'. (defalias 'comint-watch-for-password-prompt #[(string) "\302 \"\205\302\303 \"\203\304\305\306\211 $\307 !\207" [comint-password-prompt-regexp string string-match "^[ \n \f]+" replace-match "" t send-invisible] 5 (#$ . 60573)]) #@78 Like `process-send-string', but also does extra bookkeeping for Comint mode. (defalias 'comint-send-string #[(process string) "\203r\302!\203\303!\202\304!q\210\305 \210)\202 \305 \210\306 \"\207" [process string processp process-buffer get-buffer comint-snapshot-last-prompt process-send-string] 3 (#$ . 61120)]) #@78 Like `process-send-region', but also does extra bookkeeping for Comint mode. (defalias 'comint-send-region #[(process start end) "\203r\303!\203\304!\202\305!q\210\306 \210)\202 \306 \210\307 \n#\207" [process start end processp process-buffer get-buffer comint-snapshot-last-prompt process-send-region] 4 (#$ . 61452)]) #@82 Delete all output from interpreter since last input. Does not delete the prompt. (defalias 'comint-delete-output #[nil "\305p!\306\307\212\310\n!b\210\311y\210\312 \f |\210\310\n!b\210\313 `{P `|\210*\314\n \"+\207" [inhibit-read-only replacement proc pmark comint-last-input-end get-buffer-process nil t process-mark 0 point-marker "*** output flushed ***\n" comint-output-filter] 3 (#$ . 61791) nil]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias comint-kill-output comint-delete-output nil make-obsolete "21.1"] 4) #@656 Write output from interpreter since last input to FILENAME. Any prompt at the end of the output is not written. If the optional argument APPEND (the prefix argument when interactive) is non-nil, the output is appended to the file instead. If the optional argument MUSTBENEW is non-nil, check for an existing file with the same name. If MUSTBENEW is `excl', that means to get an error if the file already exists; never overwrite. If MUSTBENEW is neither nil nor `excl', that means ask for confirmation before overwriting, but do go ahead and overwrite the file if the user confirms. When interactive, MUSTBENEW is nil when appending, and t otherwise. (defalias 'comint-write-output #[(filename &optional append mustbenew) "\212\304\305p!!b\210\306y\210\307` \n\310\211 &)\207" [comint-last-input-end filename append mustbenew process-mark get-buffer-process 0 write-region nil] 8 (#$ . 62341) (list (read-file-name (if current-prefix-arg "Append output to file: " "Write output to file: ")) current-prefix-arg (not current-prefix-arg))]) #@114 Append output from interpreter since last input to FILENAME. Any prompt at the end of the output is not written. (defalias 'comint-append-output-to-file #[(filename) "\301\302\"\207" [filename comint-write-output t] 3 (#$ . 63392) "fAppend output to file: "]) #@127 Display start of this batch of interpreter output at top of window. Sets mark to the value of point when this command is run. (defalias 'comint-show-output #[nil "\305 \210\306!\206\nd\n\203! b\210\307\310!\210\311\312 `\"\210\313 \202;\314 !e U\203/e\2021 T\211b\210*\311\312 `\")\207" [comint-last-input-end pos comint-use-prompt-regexp beg pt push-mark marker-position beginning-of-line 0 set-window-start selected-window comint-skip-prompt field-beginning] 4 (#$ . 63660) nil]) #@109 Interrupt the current subjob. This command also kills the pending input between the process mark and point. (defalias 'comint-interrupt-subjob #[nil "\301 \210\302\303\"\207" [comint-ptyp comint-skip-input interrupt-process nil] 3 (#$ . 64158) nil]) #@119 Send kill signal to the current subjob. This command also kills the pending input between the process mark and point. (defalias 'comint-kill-subjob #[nil "\301 \210\302\303\"\207" [comint-ptyp comint-skip-input kill-process nil] 3 (#$ . 64416) nil]) #@119 Send quit signal to the current subjob. This command also kills the pending input between the process mark and point. (defalias 'comint-quit-subjob #[nil "\301 \210\302\303\"\207" [comint-ptyp comint-skip-input quit-process nil] 3 (#$ . 64674) nil]) #@373 Stop the current subjob. This command also kills the pending input between the process mark and point. WARNING: if there is no current subjob, you can end up suspending the top-level process running in the buffer. If you accidentally do this, use \[comint-continue-subjob] to resume the process. (This is not a problem with most shells, since they ignore this signal.) (defalias 'comint-stop-subjob #[nil "\301 \210\302\303\"\207" [comint-ptyp comint-skip-input stop-process nil] 3 (#$ . 64932) nil]) #@111 Send CONT signal to process buffer's process group. Useful if you accidentally suspend the top-level process. (defalias 'comint-continue-subjob #[nil "\301\302\"\207" [comint-ptyp continue-process nil] 3 (#$ . 65444) nil]) #@145 Skip all pending input, from last stuff output by interpreter to point. This means mark it as if it had been sent as input, without sending it. (defalias 'comint-skip-input #[nil "\304\305\306\307\211\"\210*\305\210`\310\311p!!\312\313\314 !\261\210\n U\205'\n`\305\223*\207" [comint-input-filter-functions comint-input-sender marker pos ignore nil comint-send-input t process-mark get-buffer-process " " key-description this-command-keys] 4 (#$ . 65675)]) #@63 Kill all text from last stuff output by interpreter to point. (defalias 'comint-kill-input #[nil "\301\302p!!`\303!V\205\304`\")\207" [pmark process-mark get-buffer-process marker-position kill-region] 3 (#$ . 66146) nil]) #@139 Delete ARG characters forward or send an EOF to subprocess. Sends an EOF only if point is at the end of the buffer and there is no input. (defalias 'comint-delchar-or-maybe-eof #[(arg) "\302p!m\203\203`\303\304!!U\203\305 \202\306 !)\207" [proc arg get-buffer-process marker-position process-mark comint-send-eof delete-char] 4 (#$ . 66381) "p"]) #@46 Send an EOF to the current buffer's process. (defalias 'comint-send-eof #[nil "\300\301\211\"\210\302 \207" [comint-send-input t process-send-eof] 3 (#$ . 66745) nil]) #@294 Search backward through buffer for input fields that match REGEXP. If `comint-use-prompt-regexp' is non-nil, then input fields are identified by lines that match `comint-prompt-regexp'. With prefix argument N, search for Nth previous match. If N is negative, find the next or Nth next match. (defalias 'comint-backward-matching-input #[(regexp n) "\2038 \306\nQ\212\f\307V\203\307\202\310\210\311 \312\313\f$\205!`)\211\2040\314\315!\210\316 \2026 b\210\317\312!*\207\f\307W\203B\320\202C\310\212\f\307U\204l\311\n\312\313$\204Z\321\315!\210\322`\323\"\324=\203F\fZ\211\202G\325 )\211b*\207" [comint-use-prompt-regexp comint-prompt-regexp regexp re n pos ".*" 0 1 re-search-backward nil t message "Not found" ding comint-bol -1 error get-char-property field input field-beginning dir] 6 (#$ . 66920) (comint-regexp-arg "Backward input matching (regexp): ")]) #@302 Search forward through buffer for input fields that match REGEXP. If `comint-use-prompt-regexp' is non-nil, then input fields are identified by lines that match `comint-prompt-regexp'. With prefix argument N, search for Nth following match. If N is negative, find the previous or Nth previous match. (defalias 'comint-forward-matching-input #[(regexp n) "\302 [\"\207" [regexp n comint-backward-matching-input] 3 (#$ . 67813) (comint-regexp-arg "Forward input matching (regexp): ")]) #@226 Move to end of Nth next prompt in the buffer. If `comint-use-prompt-regexp' is nil, then this means the beginning of the Nth next `input' field, otherwise, it means the Nth occurrence of text matching `comint-prompt-regexp'. (defalias 'comint-next-prompt #[(n) "\203  \306V\203\307\202\306\210\310 !\210\311 )\207`\312\211 \306U\204w \306V\2039\313\314\"\202>\315\314\"\211\203K\fU\203Y \306V\203Sd\306\211\202#\316\314\"\317=\203\" \306W\203n T\202p S\202\" \205} b+\207" [comint-use-prompt-regexp comint-prompt-regexp paragraph-start n prev-pos input-pos 0 1 forward-paragraph comint-skip-prompt nil next-single-char-property-change field previous-single-char-property-change get-char-property input pos] 4 (#$ . 68306) "p"]) #@234 Move to end of Nth previous prompt in the buffer. If `comint-use-prompt-regexp' is nil, then this means the beginning of the Nth previous `input' field, otherwise, it means the Nth occurrence of text matching `comint-prompt-regexp'. (defalias 'comint-previous-prompt #[(n) "\301[!\207" [n comint-next-prompt] 2 (#$ . 69085) "p"]) (byte-code "\301B\302\301!\204\303\301\304\"\210\305\301!\210\306B\302\306!\204\"\303\306\304\"\210\305\306!\207" [current-load-list comint-insert-previous-argument-last-start-pos default-boundp set-default nil make-variable-buffer-local comint-insert-previous-argument-last-index] 3) #@490 Insert the INDEXth argument from the previous Comint command-line at point. Spaces are added at beginning and/or end of the inserted string if necessary to ensure that it's separated from adjacent arguments. Interactively, if no prefix argument is given, the last argument is inserted. Repeated interactive invocations will cycle through the same argument from progressively earlier commands (using the value of INDEX specified with the first command). This command is like `M-.' in bash. (defalias 'comint-insert-previous-argument #[(index) "\203\306! \n=\203 `|\210\f\202\"\307 \204\"\310 `\311 X\203/\312 \210\2022\313 \210 `\307\223\210\314\315!\316\317\"\203L\315\211\224O\320\211#c\210) \206Z\315Tl?\205c\313 \207" [index last-command this-command comint-insert-previous-argument-last-start-pos comint-insert-previous-argument-last-index comint-input-ring-index prefix-numeric-value nil make-marker comint-line-beginning-position comint-bol just-one-space comint-previous-input-string 0 string-match "[ \n]*&" comint-arguments input-string] 4 (#$ . 69715) "P"]) #@857 Update read-only status of newline before point. The `fence' read-only property is used to indicate that a newline is read-only for no other reason than to "fence off" a following front-sticky read-only region. This is used to implement comint read-only prompts. If the text after a newline changes, the read-only status of that newline may need updating. That is what this function does. This function does nothing if point is not at the beginning of a line, or is at the beginning of the accessible portion of the buffer. Otherwise, if the character after point has a front-sticky read-only property, then the preceding newline is given a read-only property of `fence', unless it already is read-only. If the character after point does not have a front-sticky read-only property, any read-only property of `fence' on the preceding newline is removed. (defalias 'comint-update-fence #[nil "`\303\304\"\305n\205Ko?\205K\303\306\"\203; <\203$\306 >\202%\305\203;\303S\306\"?\205K\307S\306\310$\202K\303S\306\"\310=\205K\311S\312#+\207" [pt lst inhibit-modification-hooks get-text-property front-sticky t read-only put-text-property fence remove-list-of-text-properties (read-only)] 5 (#$ . 70822)]) #@463 Kill current line, ignoring read-only and field properties. With prefix arg COUNT, kill that many lines starting from the current line. If COUNT is negative, kill backward. Also kill the preceding newline, instead of the trailing one. (This is meant to make \[repeat] work well with negative arguments.) If COUNT is zero, kill current line but exclude the trailing newline. The read-only status of newlines is updated with `comint-update-fence', if necessary. (defalias 'comint-kill-whole-line #[(&optional count) "\303\211\304\n!\210\n\305Y\205\306 *\207" [inhibit-field-text-motion inhibit-read-only count t kill-whole-line 0 comint-update-fence] 2 (#$ . 72050) "p"]) #@791 Like `kill-region', but ignores read-only properties, if safe. This command assumes that the buffer contains read-only "prompts" which are regions with front-sticky read-only properties at the beginning of a line, with the preceding newline being read-only to protect the prompt. This is true of the comint prompts if `comint-prompt-read-only' is non-nil. This command will not delete the region if this would create mutilated or out of place prompts. That is, if any part of a prompt is deleted, the entire prompt must be deleted and all remaining prompts should stay at the beginning of a line. If this is not the case, this command just calls `kill-region' with all read-only properties intact. The read-only status of newlines is updated using `comint-update-fence', if necessary. (defalias 'comint-kill-region #[(beg end &optional yank-handler) "\212 ^ ]\nb\210n\306\n\307\"\306\n\310\"\205& <\203%\310 >\202&\311\f b\210n \306 \307\"\306 \310\"\205I<\203H\310>\202I\311\f\204Y\f\204c\204c \204l\203l\312 #\202y\311\312 #\210\313 ). \207" [beg end true-beg true-end beg-bolp beg-lst get-text-property front-sticky read-only t kill-region comint-update-fence beg-bad end-bolp end-lst end-bad yank-handler inhibit-read-only] 4 (#$ . 72733) "r"]) #@1425 Compute the defaults for `load-file' and `compile-file' commands. PREVIOUS-DIR/FILE is a pair (DIRECTORY . FILENAME) from the last source-file processing command, or nil if there hasn't been one yet. SOURCE-MODES is a list used to determine what buffers contain source files: if the major mode of the buffer is in SOURCE-MODES, it's source. Typically, (lisp-mode) or (scheme-mode). If the command is given while the cursor is inside a string, *and* the string is an existing filename, *and* the filename is not a directory, then the string is taken as default. This allows you to just position your cursor over a string that's a filename and have it taken as default. If the command is given in a file buffer whose major mode is in SOURCE-MODES, then the filename is the default file, and the file's directory is the default directory. If the buffer isn't a source file buffer (e.g., it's the process buffer), then the default directory & file are what was used in the last source-file processing command (i.e., PREVIOUS-DIR/FILE). If this is the first time the command has been run (PREVIOUS-DIR/FILE is nil), the default directory is the cwd, with no default file. ("no default file" = nil) SOURCE-MODES is typically going to be something like (tea-mode) for T programs, (lisp-mode) for Lisp programs, (soar-mode lisp-mode) for Soar programs, etc. The function returns a pair: (default-directory . default-file). (defalias 'comint-source-default #[(previous-dir/file source-modes) "\203 \n>\203\305!\306!B\207 \206\f\307B\207" [buffer-file-name major-mode source-modes previous-dir/file default-directory file-name-directory file-name-nondirectory nil] 3 (#$ . 74037)]) #@367 Check whether to save buffers visiting file FNAME. Prior to loading or compiling (or otherwise processing) a file (in the CMU process-in-a-buffer modes), this function can be called on the filename. If the file is loaded into a buffer, and the buffer is modified, the user is queried to see if he wants to save the buffer before proceeding with the load or compile. (defalias 'comint-check-source #[(fname) "\303!\211\205$\304 !\205$\305\306\307\310 !\"!\205$p q\210\311 \210\nq))\207" [fname buff old-buffer get-file-buffer buffer-modified-p y-or-n-p format "Save buffer %s first? " buffer-name save-buffer] 6 (#$ . 75734)]) #@37 Return string around point, or nil. (defalias 'comint-extract-string #[nil "\301 \3028\205 \303\304\305\217)\207" [syntax syntax-ppss 3 nil (byte-code "\301\3028T\3028b\210\303 \210`S\"\207" [syntax buffer-substring-no-properties 8 forward-sexp] 4) ((error))] 3 (#$ . 76372)]) #@722 Prompt for filenames in commands that process source files, e.g. loading or compiling a file. Provides a default, if there is one, and returns the result filename. See `comint-source-default' for more on determining defaults. PROMPT is the prompt string. PREV-DIR/FILE is the (DIRECTORY . FILE) pair from the last source processing command. SOURCE-MODES is a list of major modes used to determine what file buffers contain source files. (These two arguments are used for determining defaults.) If MUSTMATCH-P is true, then the filename reader will only accept a file that exists. A typical use: (interactive (comint-get-source "Compile file: " prev-lisp-dir/file '(lisp-mode) t)) (defalias 'comint-get-source #[(prompt prev-dir/file source-modes mustmatch-p) "\306 \"\307 \211\205\310\311\312\217\205\313 !?\211\203\"\314 !\202$\n@\f\203/\315 !\2021\nA\316\203C\317\320#\202E \211P$\321\322!!.C\207" [prev-dir/file source-modes def stringfile sfile-p defdir comint-source-default comint-extract-string nil (file-exists-p stringfile) ((error)) file-directory-p file-name-directory file-name-nondirectory read-file-name format "%s(default %s) " expand-file-name substitute-in-file-name deffile prompt mustmatch-p ans] 6 (#$ . 76661)]) #@144 Send to the inferior process PROC the string STR. Pop-up but do not select a window for the inferior process so that its response can be seen. (defalias 'comint-proc-query #[(proc str) "\306!\307!\310 !\210 q\210\311 \312\"\313\n!\314 \"\210\315!\210\316 \f\"?\205L\317\f!\320\f\n\"\210\321\312!\210\316\f\"\204F\322!\202K\320\f\"),\207" [proc proc-buf proc-mark proc-pt proc-win str process-buffer process-mark display-buffer get-buffer-window 0 marker-position comint-send-string accept-process-output pos-visible-in-window-p window-point set-window-point sit-for push-mark opoint] 3 (#$ . 77976)]) #@114 *If non-nil, automatically list possibilities on partial completion. This mirrors the optional behavior of tcsh. (custom-declare-variable 'comint-completion-autolist 'nil '(#$ . -78603) :type 'boolean :group 'comint-completion) #@264 *If non-nil, add a `/' to completed directories, ` ' to file names. If a cons pair, it should be of the form (DIRSUFFIX . FILESUFFIX) where DIRSUFFIX and FILESUFFIX are strings added on unambiguous or exact completion. This mirrors the optional behavior of tcsh. (custom-declare-variable 'comint-completion-addsuffix 't '(#$ . -78838) :type '(choice (const :tag "None" nil) (const :tag "Add /" t) (cons :tag "Suffix pair" (string :tag "Directory suffix") (string :tag "File suffix"))) :group 'comint-completion) #@188 *If non-nil, use shortest completion if characters cannot be added. This mirrors the optional behavior of tcsh. A non-nil value is useful if `comint-completion-autolist' is non-nil too. (custom-declare-variable 'comint-completion-recexact 'nil '(#$ . -79357) :type 'boolean :group 'comint-completion) #@182 *List of suffixes to be disregarded during file completion. This mirrors the optional behavior of bash and tcsh. Note that this applies to `comint-dynamic-complete-filename' only. (custom-declare-variable 'comint-completion-fignore 'nil '(#$ . -79666) :type '(repeat (string :tag "Suffix")) :group 'comint-completion) #@171 Prefix prepended to absolute file names taken from process input. This is used by Comint's and shell's completion functions, and by shell's directory tracking functions. (defvar comint-file-name-prefix "" (#$ . 79992)) #@198 String of characters valid in a file name. Note that all non-ASCII characters are considered valid in a file name regardless of what this variable says. This is a good thing to set in mode hooks. (defvar comint-file-name-chars (byte-code "\301>\203\302\207\303\207" [system-type (ms-dos windows-nt cygwin) "~/A-Za-z0-9_^$!#%&{}@`'.,:()-" "[]~/A-Za-z0-9+@:_.$#%,={}-"] 2) (#$ . 80218)) #@103 List of characters to quote with `\' when in a file name. This is a good thing to set in mode hooks. (defvar comint-file-name-quote-list nil (#$ . 80614)) #@72 Return expanded DIRECTORY, with `comint-file-name-prefix' if absolute. (defalias 'comint-directory #[(directory) "\302\303!\203 P\202!\207" [directory comint-file-name-prefix expand-file-name file-name-absolute-p] 3 (#$ . 80776)]) #@223 Return the word of WORD-CHARS at point, or nil if none is found. Word constituents are considered to be those in WORD-CHARS, which is like the inside of a "[...]" (see `skip-chars-forward'), plus all non-ASCII characters. (defalias 'comint-word #[(word-chars) "\212`\304\204C`\305 P\304x\210`\306ZeV\203%`\306Zf\307U\203%\310u\210`SeV\2037`Sf\311Y\2037\312u\210`\nU\203?\313)\202` W\205R\314` D!\210\315\316!+\207" [giveup here startpoint word-chars nil "\\\\" 2 92 -2 128 -1 t set-match-data match-string 0] 3 (#$ . 81021)]) #@179 Return FILENAME with environment variables substituted. Supports additional environment variable syntax of the command interpreter (e.g., the percent notation of cmd.exe on NT). (defalias 'comint-substitute-in-file-name #[(filename) "\306!\n\307>\203:\310\211\311 \312\216\313\314 \"\2039 \315\224\315\225O\316\f!\203-\316\f!\202.\317\320 \321\211 $\202, )\207" [filename name system-type env-var-val env-var-name save-match-data-internal substitute-in-file-name (ms-dos windows-nt) nil match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) string-match "%\\([^\\\\/]*\\)%" 1 getenv "" replace-match t] 5 (#$ . 81568)]) #@115 Return the filename at point, or nil if none is found. Environment variables are substituted. See `comint-word'. (defalias 'comint-match-partial-filename #[nil "\302!\211\205 \303\304 !!)\207" [comint-file-name-chars filename comint-word comint-substitute-in-file-name comint-unquote-filename] 4 (#$ . 82252)]) #@108 Return FILENAME with magic characters quoted. Magic characters are those in `comint-file-name-quote-list'. (defalias 'comint-quote-filename #[(filename) "\204 \207\305\306\307\310\311#\"\312 \313\216\314\315\n \f#\203,\316\317\320\211 $\314\225T\202) +\207" [comint-file-name-quote-list filename regexp save-match-data-internal i format "[%s]" mapconcat char-to-string "" match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 0 string-match replace-match "\\\\\\&" nil] 6 (#$ . 82574)]) #@50 Return FILENAME with quoted characters unquoted. (defalias 'comint-unquote-filename #[(filename) "\204 \207\304 \305\216\306\307\310 #\203#\311\312\313\211 $\306\224T\202 ) *\207" [comint-file-name-quote-list filename save-match-data-internal i match-data ((byte-code "\301\302\"\207" [save-match-data-internal set-match-data evaporate] 3)) 0 string-match "\\\\\\(.\\)" replace-match "\\1" nil] 5 (#$ . 83122)]) #@212 Dynamically perform completion at point. Calls the functions in `comint-dynamic-complete-functions' to perform completion until a function returns non-nil, at which point completion is assumed to have occurred. (defalias 'comint-dynamic-complete #[nil "\300\301!\207" [run-hook-with-args-until-success comint-dynamic-complete-functions] 2 (#$ . 83552) nil]) #@705 Dynamically complete the filename at point. Completes if after a filename. See `comint-match-partial-filename' and `comint-dynamic-complete-as-filename'. This function is similar to `comint-replace-by-expanded-filename', except that it won't change parts of the filename already entered in the buffer; it just adds completion characters to the end of the filename. A completions listing may be shown in a help buffer if completion is ambiguous. Completion is dependent on the value of `comint-completion-addsuffix', `comint-completion-recexact' and `comint-completion-fignore', and the timing of completions listing is dependent on the value of `comint-completion-autolist'. Returns t if successful. (defalias 'comint-dynamic-complete-filename #[nil "\300 \205\301\302 !\204\303\304!\210\305 \207" [comint-match-partial-filename window-minibuffer-p selected-window message "Completing file name..." comint-dynamic-complete-as-filename] 2 (#$ . 83917) nil]) #@112 Dynamically complete at point as a filename. See `comint-dynamic-complete-filename'. Returns t if successful. (defalias 'comint-dynamic-complete-as-filename #[nil "\306>\n\307\310 !\311\204\312\202#:\204 \313\202#@ \204.\312\202;:\2048\314\202;A!\315 \206C\312\"\316\"!#\317\"!$#\203]\320#!\202_%&\321$&\"\211'\204x\322\323\"\"\210\324\202&'\311=\203\216!c\210\f\204&\322\325!\210\202&'\312\230\203\233\326 \210\202&\327&!'P(\330\331'!$G\324O!c\210\321'&\"9\203\326\332(!\203\307 \202\311!c\210\f\204%\322\333!\210\202%)\203\n\203\n$'\230\203\n\334(!\203\n\332(!\203\373 \202\375!c\210\f\204%\322\335!\210\202%*\204$'\230\203\326 \210\202%\f\204%\322\336!\210) . \207" [system-type completion-ignore-case comint-completion-fignore completion-ignored-extensions minibuffer-p success (ms-dos windows-nt cygwin) window-minibuffer-p selected-window t "" "/" " " comint-match-partial-filename file-name-directory file-name-nondirectory comint-directory file-name-completion message "No completions of %s" nil "Sole completion" comint-dynamic-list-filename-completions file-name-as-directory comint-quote-filename directory-file-name file-directory-p "Completed" file-exists-p "Completed shortest" "Partially completed" comint-completion-addsuffix dirsuffix filesuffix filename filedir filenondir default-directory directory completion file comint-completion-recexact comint-completion-autolist] 5 (#$ . 84889)]) #@477 Dynamically expand and complete the filename at point. Replace the filename with an expanded, canonicalized and completed replacement. "Expanded" means environment variables (e.g., $HOME) and `~'s are replaced with the corresponding directories. "Canonicalized" means `..' and `.' are removed, and the filename is made absolute instead of relative. For expansion see `expand-file-name' and `substitute-in-file-name'. For completion see `comint-dynamic-complete-filename'. (defalias 'comint-replace-by-expanded-filename #[nil "\301 \211\205\302\303!\304\211#\210\305 )\207" [filename comint-match-partial-filename replace-match expand-file-name t comint-dynamic-complete-filename] 5 (#$ . 86400) nil]) #@592 Dynamically complete STUB from CANDIDATES list. This function inserts completion characters at point by completing STUB from the strings in CANDIDATES. A completions listing may be shown in a help buffer if completion is ambiguous. Returns nil if no completion was inserted. Returns `sole' if completed with the only completion match. Returns `shortest' if completed with the shortest of the completion matches. Returns `partial' if completed as far as possible with the completion matches. Returns `listed' if a completion listing was shown. See also `comint-dynamic-complete-filename'. (defalias 'comint-dynamic-simple-complete #[(stub candidates) "\306>\n\204\f\307\202\n:\204\310\202\nA\311\f \"\211\204+\312\313\f\"\210\314\202\244G\315U\203Y@\211\f\230\203E\312\316!\210\202Q\fG\314Oc\210\312\317!\210 c\210)\320\202\244\321\f \"\211\fG\314Oc\210\203\211\n\203\211\f\230\203\211\235\203\211 c\210\312\322!\210\323\202\243\204\225\f\230\203\236\324!\210\325\202\243\312\326!\210\327)+\207" [system-type completion-ignore-case comint-completion-addsuffix suffix stub candidates (ms-dos windows-nt cygwin) "" " " all-completions message "No completions of %s" nil 1 "Sole completion" "Completed" sole try-completion "Completed shortest" shortest comint-dynamic-list-completions listed "Partially completed" partial completions completion comint-completion-recexact comint-completion-autolist] 4 (#$ . 87116)]) #@68 List in help buffer possible completions of the filename at point. (defalias 'comint-dynamic-list-filename-completions #[nil "\306>\307 \206\n\310\311\n!\312\n! \203\313 !\202 \314\f\"\211\2042\315\316\n\"\2029\317\320\321\"!.\207" [system-type completion-ignore-case filename filedir filenondir default-directory (ms-dos windows-nt cygwin) comint-match-partial-filename "" file-name-directory file-name-nondirectory comint-directory file-name-all-completions message "No completions of %s" comint-dynamic-list-completions mapcar comint-quote-filename directory completions] 5 (#$ . 88588) nil]) (byte-code "\301B\302\301!\204\303\301\304\"\210\305B\302\305!\204\303\305\304\"\210\304\207" [current-load-list comint-displayed-dynamic-completions default-boundp set-default nil comint-dynamic-list-completions-config] 3) #@77 List in help buffer sorted COMPLETIONS. Typing SPC flushes the help buffer. (defalias 'comint-dynamic-list-completions #[(completions) "\306\307\310\"\311 \312\"\n =\203`\203`\313!\203`\314!\203`\315\314!!\203` \316\317\314!\"\232\203`r\314!q\210\320d\"\203H\321e\"\210\202\\\322 \323\324\325 \"r\326\216\327!\210\330 \210,)\202o\331 (\307\220\332 !\221\210\333\334!\210\335\211)*r\336\307!q\210\337\317!\210 \340\335!\211*\310H\211):\205\331)\211+:\203\241\341+8\202\247\322 `\342\310F):\205\331\314)\211+:\203\275\341+8\202\303\322 `\342\310F),\310,8)!\336\307!=\205\331\343*!\344=)\203\351\344)!\210\345(!\202\376)\346=\203\367\345(!\202\376\347*!\211-+\207" [window completions last-command this-command save-selected-window-alist save-selected-window-window get-buffer-window "*Completions*" 0 sort string-lessp window-live-p window-buffer buffer-name buffer-local-value comint-displayed-dynamic-completions pos-visible-in-window-p set-window-start selected-window mapcar #[(frame) "\301!D\207" [frame frame-selected-window] 3] frame-list ((byte-code "\305\211\203/\n@\306 @!\203(\307 \211A@)!\203(\310 @ \211A@)\"\210\nA\211\204*\307\f!\203:\311\f!\210\305\207" [save-selected-window-alist elt #1=#:--cl-dolist-temp-- x save-selected-window-window nil frame-live-p window-live-p set-frame-selected-window select-window] 4)) select-window scroll-up current-window-configuration display-completion-list message "Type space to flush; repeat completion command to scroll" nil get-buffer make-local-variable read-key-sequence 1 (0 . 0) key-binding mouse-choose-completion set-window-configuration 32 listify-key-sequence comint-dynamic-list-completions-config first key event position unread-command-events] 6 (#$ . 89443)]) #@208 After fetching a line from input history, this fetches the following line. In other words, this recalls the input line after the line you recalled last. You can use this to repeat a sequence of input lines. (defalias 'comint-get-next-from-history #[nil "\203 T\302\303!\207\304\305!\207" [comint-save-input-ring-index comint-input-ring-index comint-next-input 1 message "No previous history command"] 2 (#$ . 91246) nil]) #@301 Accumulate a line to send as input along with more lines. This inserts a newline so that you can enter more text to be sent along with this line. Use \[comint-send-input] to send all the accumulated input, at once. The entire accumulated text becomes one item in the input history when you send it. (defalias 'comint-accumulate #[nil "\303c\210`\304\223\210 \205 S\211\207" [comint-accum-marker comint-input-ring-index comint-save-input-ring-index "\n" nil] 3 (#$ . 91679) nil]) #@131 Move point to the process mark. The process mark separates output, and input already sent, from input that has not yet been sent. (defalias 'comint-goto-process-mark #[nil "\301p!\206 \302\303!\304!b\210t\205\305\306!)\207" [proc get-buffer-process error "Current buffer has no process" process-mark message "Point is now at the process mark"] 2 (#$ . 92170) nil]) #@584 Move point to beginning of line (after prompt) or to the process mark. The first time you use this command, it moves to the beginning of the line (but after the prompt, if any). If you repeat it again immediately, it moves point to the process mark. The process mark separates the process output, along with input already sent, from input that has not yet been sent. Ordinarily, the process mark is at the beginning of the current input line; but if you have used \[comint-accumulate] to send multiple lines at once, the process mark is at the beginning of the accumulated input. (defalias 'comint-bol-or-process-mark #[nil "\301=\204\n\302\303!\207\304 \207" [last-command comint-bol-or-process-mark comint-bol nil comint-goto-process-mark] 2 (#$ . 92547) nil]) #@32 Set the process mark at point. (defalias 'comint-set-process-mark #[nil "\301p!\206 \302\303!\304!`\305\223\210\306\307!)\207" [proc get-buffer-process error "Current buffer has no process" process-mark nil message "Process mark set"] 3 (#$ . 93321) nil]) #@126 *If non-nil, print messages each time the redirection filter is invoked. Also print a message when redirection is completed. (custom-declare-variable 'comint-redirect-verbose 'nil '(#$ . -93587) :group 'comint :type 'boolean) #@595 List of functions to call before inserting redirected process output. Each function gets one argument, a string containing the text received from the subprocess. It should return the string to insert, perhaps the same string that was received, or perhaps a modified or transformed string. The functions on the list are called sequentially, and each one is given the string returned by the previous one. The string returned by the last function is the text that is actually inserted in the redirection buffer. You can use `add-hook' to add functions to this list either globally or locally. (defvar comint-redirect-filter-functions nil (#$ . 93820)) #@51 The buffer or list of buffers to put output into. (defvar comint-redirect-output-buffer nil (#$ . 94479)) #@214 Regular expression that determines when to stop redirection in Comint. When the redirection filter function is given output that matches this regexp, the output is inserted as usual, and redirection is completed. (defvar comint-redirect-finished-regexp nil (#$ . 94592)) #@263 If non-nil, the text that ends a redirection is included in it. More precisely, the text that matches `comint-redirect-finished-regexp' and therefore terminates an output redirection is inserted in the redirection target buffer, along with the preceding output. (defvar comint-redirect-insert-matching-regexp nil (#$ . 94870)) #@73 Non-nil means echo input in the process buffer even during redirection. (defvar comint-redirect-echo-input nil (#$ . 95203)) #@61 Non-nil if redirection has completed in the current buffer. (defvar comint-redirect-completed nil (#$ . 95334)) #@44 Original mode line for redirected process. (defvar comint-redirect-original-mode-line-process nil (#$ . 95452)) #@451 If non-nil, check that redirection is likely to complete successfully. More precisely, before starting a redirection, verify that the regular expression `comint-redirect-finished-regexp' that controls when to terminate it actually matches some text already in the process buffer. The idea is that this regular expression should match a prompt string, and that there ought to be at least one copy of your prompt string in the process buffer already. (defvar comint-redirect-perform-sanity-check t (#$ . 95571)) #@144 The process filter that was in place when redirection is started. When redirection is completed, the process filter is restored to this value. (defvar comint-redirect-original-filter-function nil (#$ . 96089)) #@258 Non-nil means `comint-redirect' can insert into read-only buffers. This works by binding `inhibit-read-only' around the insertion. This is useful, for instance, for insertion into Help mode buffers. You probably want to set it locally to the output buffer. (defvar comint-redirect-subvert-readonly nil (#$ . 96306)) #@483 Set up for output redirection. This function sets local variables that are used by `comint-redirect-filter' to perform redirection. Output from COMINT-BUFFER is redirected to OUTPUT-BUFFER, until something in the output matches FINISHED-REGEXP. If optional argument ECHO-INPUT is non-nil, output is echoed to the original Comint buffer. This function is called by `comint-redirect-send-command-to-process', and does not normally need to be invoked by the end user or programmer. (defalias 'comint-redirect-setup #[(output-buffer comint-buffer finished-regexp &optional echo-input) "rq\210\306\302!\210 \306\304!\210 \306\307!\210 \306\310!\210\306\311!\210\312 \2033 \313\234\314PC\2025\315C\211)\207" [comint-buffer mode-line-process comint-redirect-original-mode-line-process output-buffer comint-redirect-output-buffer finished-regexp make-local-variable comint-redirect-finished-regexp comint-redirect-echo-input comint-redirect-completed nil 0 " Redirection" ":%s Redirection" echo-input] 2 (#$ . 96629)]) #@64 End a Comint redirection. See `comint-redirect-send-command'. (defalias 'comint-redirect-cleanup #[nil "\304\305p!\"\210 \306\211\207" [comint-redirect-original-filter-function comint-redirect-original-mode-line-process mode-line-process comint-redirect-completed set-process-filter get-buffer-process t] 3 (#$ . 97663) nil]) (defalias 'comint-redirect-remove-redirection 'comint-redirect-cleanup) #@305 Filter function which redirects output from PROCESS to a buffer or buffers. The variable `comint-redirect-output-buffer' says which buffer(s) to place output in. INPUT-STRING is the input from the Comint process. This function runs as a process filter, and does not need to be invoked by the end user. (defalias 'comint-redirect-filter #[(process input-string) "\205r\304!q\210\305 !\210\n\205 \205  \")\207" [process input-string comint-redirect-echo-input comint-redirect-original-filter-function process-buffer comint-redirect-preoutput-filter] 3 (#$ . 98072)]) #@276 Comint filter function which redirects Comint output to a buffer or buffers. The variable `comint-redirect-output-buffer' says which buffer(s) to place output in. INPUT-STRING is the input from the Comint process. This function does not need to be invoked by the end user. (defalias 'comint-redirect-preoutput-filter #[(input-string) "<\203 \202 C \f\211\203G\n\203G @\306=\203;\307\304!\211\2037\n\2037 @\n! A\211\204')\202@ @\n! A\211\204)\204\\\310\n\"\203\\\311\312\313\211\n$\212 \313\211\203\206@\314!q\210db\210\nc\210)A\211\204g+\203\225\315\316\317\320 \321#\"\210\310 \"\203\255\203\246\315\322!\210\323 \210\324\325!\210\203\266\n\202\267\312*\207" [comint-redirect-output-buffer input-string filtered-input-string output-buffer-list comint-redirect-filter-functions functions t default-value string-match replace-match "" nil get-buffer-create message "Redirected output to buffer(s) %s" mapconcat identity " " "Redirection completed" comint-redirect-cleanup run-hooks comint-redirect-hook comint-redirect-insert-matching-regexp comint-redirect-finished-regexp buf #1=#:--cl-dolist-temp-- comint-redirect-subvert-readonly inhibit-read-only comint-redirect-verbose comint-redirect-echo-input] 7 (#$ . 98655)]) #@185 Send COMMAND to process in current buffer, with output to OUTPUT-BUFFER. With prefix arg ECHO, echo output in process buffer. If NO-DISPLAY is non-nil, do not show the output buffer. (defalias 'comint-redirect-send-command #[(command output-buffer echo &optional no-display) "\305p!\211\203\306 \np \f%\202\307\310!)\207" [process command output-buffer echo no-display get-buffer-process comint-redirect-send-command-to-process error "No process for current buffer"] 7 (#$ . 99947) "sCommand: \nBOutput Buffer: \nP"]) #@162 Send COMMAND to PROCESS, with output to OUTPUT-BUFFER. With prefix arg, echo output in process buffer. If NO-DISPLAY is non-nil, do not show the output buffer. (defalias 'comint-redirect-send-command-to-process #[(command output-buffer process echo &optional no-display) "\306!\203\f\301!\202 \307 !r q\210 \203+\212db\210\310\f\311\312#\204*\313\314!\210)\315 p\f$\210\316\n!\317\n\320\"\210\321p\322P\"\210\206Y\323\324 <\203V @\202W !!+\207" [process process-buffer proc comint-redirect-perform-sanity-check comint-prompt-regexp output-buffer processp get-buffer-process re-search-backward nil t error "No prompt found or `comint-prompt-regexp' not set properly" comint-redirect-setup process-filter set-process-filter comint-redirect-filter process-send-string "\n" display-buffer get-buffer-create echo comint-redirect-original-filter-function command no-display] 5 (#$ . 100478) "sCommand: \nBOutput Buffer: \nbProcess Buffer: \nP"]) #@160 Send COMMAND to current process. Return a list of expressions in the output which match REGEXP. REGEXP-GROUP is the regular expression group in REGEXP to use. (defalias 'comint-redirect-results-list #[(command regexp regexp-group) "\303\304p! \n$\207" [command regexp regexp-group comint-redirect-results-list-from-process get-buffer-process] 5 (#$ . 101446)]) #@152 Send COMMAND to PROCESS. Return a list of expressions in the output which match REGEXP. REGEXP-GROUP is the regular expression group in REGEXP to use. (defalias 'comint-redirect-results-list-from-process #[(process command regexp regexp-group) "\306\307\212\310 !q\210\311 \210\312\n \307\313%\210\314 !q\210\f\204&\315\307\316\"\210\202 q\210eb\210\317\n!\2035\307y\210\320 \307\313#\203K\321\224\225\"B\2025+\207" [results output-buffer command process comint-redirect-completed regexp " *Comint Redirect Work Buffer*" nil get-buffer-create erase-buffer comint-redirect-send-command-to-process t process-buffer accept-process-output 1 looking-at re-search-forward buffer-substring-no-properties regexp-group] 6 (#$ . 101815)]) (byte-code "\300\301\302\"\210\303\304!\207" [mapc #[(x) "\301\302\"\207" [x add-to-list debug-ignored-errors] 3] ("^Not at command line$" "^Empty input ring$" "^No history$" "^Not found$" "^Current buffer has no process$") provide comint] 3)