diff options
| author | Luc Teirlinck | 2005-04-26 23:16:20 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-04-26 23:16:20 +0000 |
| commit | e03035e3528c0dac8baae005554a677aed6d4cb4 (patch) | |
| tree | b8863243538826b6095f9e3ab1b8a823530bcc93 /lisp/shell.el | |
| parent | 980cc24722e345b6f79a287957efaec4cf42c25c (diff) | |
| download | emacs-e03035e3528c0dac8baae005554a677aed6d4cb4.tar.gz emacs-e03035e3528c0dac8baae005554a677aed6d4cb4.zip | |
(shell-prompt-pattern): Doc fix.
(shell-mode): Set paragraph-separate buffer locally to "\\'".
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 1817a1fd3b4..354ed88f80f 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -136,8 +136,9 @@ Defaults to \"^[^#$%>\\n]*[#$%>] *\", which works pretty well. | |||
| 136 | This variable is used to initialise `comint-prompt-regexp' in the | 136 | This variable is used to initialise `comint-prompt-regexp' in the |
| 137 | shell buffer. | 137 | shell buffer. |
| 138 | 138 | ||
| 139 | This variable is only used if the variable | 139 | If `comint-use-prompt-regexp' is nil, then this variable is only used |
| 140 | `comint-use-prompt-regexp-instead-of-fields' is non-nil. | 140 | to determine paragraph boundaries. See Info node `Shell Prompts' for |
| 141 | how Shell mode treats paragraphs. | ||
| 141 | 142 | ||
| 142 | The pattern should probably not match more than one line. If it does, | 143 | The pattern should probably not match more than one line. If it does, |
| 143 | Shell mode may become confused trying to distinguish prompt from input | 144 | Shell mode may become confused trying to distinguish prompt from input |
| @@ -422,6 +423,7 @@ buffer." | |||
| 422 | (setq comint-file-name-chars shell-file-name-chars) | 423 | (setq comint-file-name-chars shell-file-name-chars) |
| 423 | (setq comint-file-name-quote-list shell-file-name-quote-list) | 424 | (setq comint-file-name-quote-list shell-file-name-quote-list) |
| 424 | (setq comint-dynamic-complete-functions shell-dynamic-complete-functions) | 425 | (setq comint-dynamic-complete-functions shell-dynamic-complete-functions) |
| 426 | (set (make-local-variable 'paragraph-separate) "\\'") | ||
| 425 | (make-local-variable 'paragraph-start) | 427 | (make-local-variable 'paragraph-start) |
| 426 | (setq paragraph-start comint-prompt-regexp) | 428 | (setq paragraph-start comint-prompt-regexp) |
| 427 | (make-local-variable 'font-lock-defaults) | 429 | (make-local-variable 'font-lock-defaults) |