aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/shell.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 2914d1d2c81..ba7515e7bad 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -553,6 +553,8 @@ Variables `comint-output-filter-functions', a hook, and
553`comint-scroll-to-bottom-on-input' and `comint-scroll-to-bottom-on-output' 553`comint-scroll-to-bottom-on-input' and `comint-scroll-to-bottom-on-output'
554control whether input and output cause the window to scroll to the end of the 554control whether input and output cause the window to scroll to the end of the
555buffer." 555buffer."
556 (when (called-interactively-p 'any)
557 (error "Can't be called interactively; did you mean `shell-script-mode' instead?"))
556 (setq comint-prompt-regexp shell-prompt-pattern) 558 (setq comint-prompt-regexp shell-prompt-pattern)
557 (shell-completion-vars) 559 (shell-completion-vars)
558 (setq-local paragraph-separate "\\'") 560 (setq-local paragraph-separate "\\'")