mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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'.
This commit is contained in:
parent
6e52becfbe
commit
18b680cfd1
8 changed files with 19 additions and 11 deletions
|
|
@ -260,7 +260,7 @@ information on Eshell, see Info node `(eshell)Top'."
|
|||
(t
|
||||
(get-buffer-create eshell-buffer-name)))))
|
||||
(cl-assert (and buf (buffer-live-p buf)))
|
||||
(pop-to-buffer-same-window buf)
|
||||
(pop-to-buffer buf display-comint-buffer-action)
|
||||
(unless (derived-mode-p 'eshell-mode)
|
||||
(eshell-mode))
|
||||
buf))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue