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/org | |
| 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/org')
| -rw-r--r-- | lisp/org/ol-eshell.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org/ol-eshell.el b/lisp/org/ol-eshell.el index a7550e3769b..b13f659b22d 100644 --- a/lisp/org/ol-eshell.el +++ b/lisp/org/ol-eshell.el | |||
| @@ -46,7 +46,7 @@ followed by a colon." | |||
| 46 | (eshell-buffer-name (car buffer-and-command)) | 46 | (eshell-buffer-name (car buffer-and-command)) |
| 47 | (command (cadr buffer-and-command))) | 47 | (command (cadr buffer-and-command))) |
| 48 | (if (get-buffer eshell-buffer-name) | 48 | (if (get-buffer eshell-buffer-name) |
| 49 | (pop-to-buffer-same-window eshell-buffer-name) | 49 | (pop-to-buffer eshell-buffer-name display-comint-buffer-action) |
| 50 | (eshell)) | 50 | (eshell)) |
| 51 | (goto-char (point-max)) | 51 | (goto-char (point-max)) |
| 52 | (eshell-kill-input) | 52 | (eshell-kill-input) |