summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-11-22 15:33:21 +0000
committerRichard M. Stallman <rms@gnu.org>1998-11-22 15:33:21 +0000
commitfad22e2e9cc5452634358dc690dcec16b4fe84ae (patch)
tree1e1a89228c0d114a37b68e5b2238281415fb2b8f /lisp/shell.el
parent58c4bd873eff761f5ebc4a016a0993f2f143059f (diff)
downloademacs-fad22e2e9cc5452634358dc690dcec16b4fe84ae.tar.gz
(shell-prompt-pattern): Add defcustom.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 78eeb479300..07bd4a87d64 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -121,7 +121,7 @@
:group 'shell)
;;;###autoload
-(defvar shell-prompt-pattern "^[^#$%>\n]*[#$%>] *"
+(defcustom shell-prompt-pattern "^[^#$%>\n]*[#$%>] *"
"Regexp to match prompts in the inferior shell.
Defaults to \"^[^#$%>\\n]*[#$%>] *\", which works pretty well.
This variable is used to initialise `comint-prompt-regexp' in the
@@ -131,7 +131,9 @@ The pattern should probably not match more than one line. If it does,
Shell mode may become confused trying to distinguish prompt from input
on lines which don't start with a prompt.
-This is a fine thing to set in your `.emacs' file.")
+This is a fine thing to set in your `.emacs' file."
+ :type 'regexp
+ :group 'shell)
(defcustom shell-completion-fignore nil
"*List of suffixes to be disregarded during file/command completion.