[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8d517da 2/2: Fix how `shell-mode' avoids being called interactive
From: |
Lars Ingebrigtsen |
Subject: |
master 8d517da 2/2: Fix how `shell-mode' avoids being called interactively |
Date: |
Sun, 14 Feb 2021 06:58:27 -0500 (EST) |
branch: master
commit 8d517daf770e8c6bd05e040b3bd3402626dbd9ef
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Fix how `shell-mode' avoids being called interactively
* lisp/shell.el (shell-mode): Make noninteractive instead of
erroring out after being called.
---
lisp/shell.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lisp/shell.el b/lisp/shell.el
index 9238ad1..53f5d0b 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -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 "\\'")