diff options
| author | Sam Steingold | 2021-12-28 17:27:41 -0500 |
|---|---|---|
| committer | Sam Steingold | 2021-12-28 17:28:49 -0500 |
| commit | 18b680cfd177e877991be2bd70ead628bbdc0aa0 (patch) | |
| tree | 0d926a816f1a60e5836221192549854155740b33 /lisp/shell.el | |
| parent | 6e52becfbe2a33c025b8c4838b3c8f06ba5a6fb8 (diff) | |
| download | emacs-18b680cfd177e877991be2bd70ead628bbdc0aa0.tar.gz emacs-18b680cfd177e877991be2bd70ead628bbdc0aa0.zip | |
Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action'
* lisp/window.el (display-comint-buffer-action): New `defcustom`,
defaults to 'display-buffer-same-window' for backward compatibility.
* lisp/cmuscheme.el (run-scheme, switch-to-scheme): Pass
'display-comint-buffer-action' to 'pop-to-buffer' instead
of using 'pop-to-buffer-same-window'.
* lisp/eshell/eshell.el (eshell): Likewise.
* lisp/shell.el (shell): Likewise.
* lisp/org/ol-eshell.el (org-eshell-open): Likewise.
* lisp/progmodes/inf-lisp.el (inferior-lisp): Likewise.
* lisp/progmodes/project.el (project-shell, project-eshell): Likewise.
* lisp/textmodes/tex-mode.el (tex-display-shell, tex-compile-default)
(tex-recenter-output-buffer): Pass 'display-comint-buffer-action'
to 'pop-to-buffer'.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 370532ea46f..1860e4691d3 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -758,7 +758,7 @@ Make the shell buffer the current buffer, and return it. | |||
| 758 | (current-buffer))) | 758 | (current-buffer))) |
| 759 | ;; The buffer's window must be correctly set when we call comint | 759 | ;; The buffer's window must be correctly set when we call comint |
| 760 | ;; (so that comint sets the COLUMNS env var properly). | 760 | ;; (so that comint sets the COLUMNS env var properly). |
| 761 | (pop-to-buffer-same-window buffer) | 761 | (pop-to-buffer buffer) |
| 762 | 762 | ||
| 763 | (with-connection-local-variables | 763 | (with-connection-local-variables |
| 764 | ;; On remote hosts, the local `shell-file-name' might be useless. | 764 | ;; On remote hosts, the local `shell-file-name' might be useless. |