]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix how `shell-mode' avoids being called interactively
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 11:52:00 +0000 (12:52 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 11:58:20 +0000 (12:58 +0100)
* lisp/shell.el (shell-mode): Make noninteractive instead of
erroring out after being called.

lisp/shell.el

index 9238ad1e8a0d19a2fbb954efc7faf02d05e27cbc..53f5d0b6f1c5b4e21d042555a3f44385033534b9 100644 (file)
@@ -556,8 +556,7 @@ Variables `comint-output-filter-functions', a hook, and
 `comint-scroll-to-bottom-on-input' and `comint-scroll-to-bottom-on-output'
 control whether input and output cause the window to scroll to the end of the
 buffer."
-  (when (called-interactively-p 'any)
-    (error "Can't be called interactively; did you mean `shell-script-mode' instead?"))
+  :interactive nil
   (setq comint-prompt-regexp shell-prompt-pattern)
   (shell-completion-vars)
   (setq-local paragraph-separate "\\'")