583 |
Setting variable `comint-eol-on-send' means jump to the end of the line |
Setting variable `comint-eol-on-send' means jump to the end of the line |
584 |
before submitting new input. |
before submitting new input. |
585 |
|
|
586 |
This mode is customised to create major modes such as Inferior Lisp |
This mode is customized to create major modes such as Inferior Lisp |
587 |
mode, Shell mode, etc. This can be done by setting the hooks |
mode, Shell mode, etc. This can be done by setting the hooks |
588 |
`comint-input-filter-functions', `comint-input-filter', `comint-input-sender' |
`comint-input-filter-functions', `comint-input-filter', `comint-input-sender' |
589 |
and `comint-get-old-input' to appropriate functions, and the variable |
and `comint-get-old-input' to appropriate functions, and the variable |
654 |
(set (make-local-variable 'next-line-add-newlines) nil)) |
(set (make-local-variable 'next-line-add-newlines) nil)) |
655 |
|
|
656 |
(defun comint-check-proc (buffer) |
(defun comint-check-proc (buffer) |
657 |
"Return t if there is a living process associated w/buffer BUFFER. |
"Return non-nil if there is a living process associated w/buffer BUFFER. |
658 |
Living means the status is `open', `run', or `stop'. |
Living means the status is `open', `run', or `stop'. |
659 |
BUFFER can be either a buffer or the name of one." |
BUFFER can be either a buffer or the name of one." |
660 |
(let ((proc (get-buffer-process buffer))) |
(let ((proc (get-buffer-process buffer))) |
667 |
PROGRAM should be either a string denoting an executable program to create |
PROGRAM should be either a string denoting an executable program to create |
668 |
via `start-process', or a cons pair of the form (HOST . SERVICE) denoting a TCP |
via `start-process', or a cons pair of the form (HOST . SERVICE) denoting a TCP |
669 |
connection to be opened via `open-network-stream'. If there is already a |
connection to be opened via `open-network-stream'. If there is already a |
670 |
running process in that buffer, it is not restarted. Optional third arg |
running process in that buffer, it is not restarted. Optional fourth arg |
671 |
STARTFILE is the name of a file to send the contents of to the process. |
STARTFILE is the name of a file to send the contents of to the process. |
672 |
|
|
673 |
If PROGRAM is a string, any more args are arguments to PROGRAM." |
If PROGRAM is a string, any more args are arguments to PROGRAM." |
1583 |
|
|
1584 |
(defun comint-snapshot-last-prompt () |
(defun comint-snapshot-last-prompt () |
1585 |
"`snapshot' any current `comint-last-prompt-overlay'. |
"`snapshot' any current `comint-last-prompt-overlay'. |
1586 |
freeze its attributes in place, even when more input comes a long |
Freeze its attributes in place, even when more input comes along |
1587 |
and moves the prompt overlay." |
and moves the prompt overlay." |
1588 |
(when comint-last-prompt-overlay |
(when comint-last-prompt-overlay |
1589 |
(let ((inhibit-read-only t) |
(let ((inhibit-read-only t) |
2389 |
"Compute the defaults for `load-file' and `compile-file' commands. |
"Compute the defaults for `load-file' and `compile-file' commands. |
2390 |
|
|
2391 |
PREVIOUS-DIR/FILE is a pair (directory . filename) from the last |
PREVIOUS-DIR/FILE is a pair (directory . filename) from the last |
2392 |
source-file processing command. nil if there hasn't been one yet. |
source-file processing command, or nil if there hasn't been one yet. |
2393 |
SOURCE-MODES is a list used to determine what buffers contain source |
SOURCE-MODES is a list used to determine what buffers contain source |
2394 |
files: if the major mode of the buffer is in SOURCE-MODES, it's source. |
files: if the major mode of the buffer is in SOURCE-MODES, it's source. |
2395 |
Typically, (lisp-mode) or (scheme-mode). |
Typically, (lisp-mode) or (scheme-mode). |