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