Mercurial > emacs
changeset 61876:c157250db02c
(shell-prompt-pattern): Doc fix.
(shell-mode): Set paragraph-separate buffer locally to "\\'".
author | Luc Teirlinck <teirllm@auburn.edu> |
---|---|
date | Tue, 26 Apr 2005 23:16:20 +0000 |
parents | cff214e628c2 |
children | 395f55ef5adc |
files | lisp/shell.el |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/shell.el Tue Apr 26 23:15:08 2005 +0000 +++ b/lisp/shell.el Tue Apr 26 23:16:20 2005 +0000 @@ -136,8 +136,9 @@ This variable is used to initialise `comint-prompt-regexp' in the shell buffer. -This variable is only used if the variable -`comint-use-prompt-regexp-instead-of-fields' is non-nil. +If `comint-use-prompt-regexp' is nil, then this variable is only used +to determine paragraph boundaries. See Info node `Shell Prompts' for +how Shell mode treats paragraphs. The pattern should probably not match more than one line. If it does, Shell mode may become confused trying to distinguish prompt from input @@ -422,6 +423,7 @@ (setq comint-file-name-chars shell-file-name-chars) (setq comint-file-name-quote-list shell-file-name-quote-list) (setq comint-dynamic-complete-functions shell-dynamic-complete-functions) + (set (make-local-variable 'paragraph-separate) "\\'") (make-local-variable 'paragraph-start) (setq paragraph-start comint-prompt-regexp) (make-local-variable 'font-lock-defaults)