summaryrefslogtreecommitdiff
path: root/lisp/progmodes/sh-script.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2022-01-11 19:19:37 +0200
committerJuri Linkov <juri@linkov.net>2022-01-11 19:19:37 +0200
commit4765487d5d24fc8a2a06c329dc9cc3bed9803391 (patch)
treea38152d33d4c7e618f667b9de83790d802c8557e /lisp/progmodes/sh-script.el
parenta18517f619bddbe23e6a91ef9dbec360d2b3447e (diff)
downloademacs-4765487d5d24fc8a2a06c329dc9cc3bed9803391.tar.gz
More fixes for display-comint-buffer-action
* lisp/window.el (display-comint-buffer-action): Use display-buffer--same-window-action as the default value. * lisp/progmodes/sh-script.el (sh-show-shell): * lisp/shell.el (shell): Add display-comint-buffer-action to pop-to-buffer. * lisp/progmodes/project.el (project-shell, project-eshell): Use `bound-and-true-p display-comint-buffer-action' for backward-compatibility. https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg02964.html
Diffstat (limited to 'lisp/progmodes/sh-script.el')
-rw-r--r--lisp/progmodes/sh-script.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index e0d597d89de..ba86ceb0eda 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1407,7 +1407,7 @@ If FORCE is non-nil and no process found, create one."
(defun sh-show-shell ()
"Pop the shell interaction buffer."
(interactive)
- (pop-to-buffer (process-buffer (sh-shell-process t))))
+ (pop-to-buffer (process-buffer (sh-shell-process t)) display-comint-buffer-action))
(defun sh-send-text (text)
"Send the text to the `sh-shell-process'."