From 5d5a7832ec1e5b471b1833721464854f07a766bd Mon Sep 17 00:00:00 2001 From: Sam Steingold Date: Tue, 28 Dec 2021 17:27:41 -0500 Subject: [PATCH] Backport commit 18b680cfd from Emacs * lisp/ol-eshell.el (org-eshell-open): Pass 'display-comint-buffer-action' to 'pop-to-buffer' instead of using 'pop-to-buffer-same-window'. Fix bug#52467 by adding a new custom variable 'display-comint-buffer-action' 18b680cfd177e877991be2bd70ead628bbdc0aa0 Sam Steingold Tue Dec 28 17:28:49 2021 -0500 [ km: Note that display-comint-buffer-action isn't available until Emacs 29. A compatibility kludge will be added in a follow-up commit. ] --- lisp/ol-eshell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ol-eshell.el b/lisp/ol-eshell.el index 1dee61b98..1ca2aa2b2 100644 --- a/lisp/ol-eshell.el +++ b/lisp/ol-eshell.el @@ -46,7 +46,7 @@ followed by a colon." (eshell-buffer-name (car buffer-and-command)) (command (cadr buffer-and-command))) (if (get-buffer eshell-buffer-name) - (pop-to-buffer-same-window eshell-buffer-name) + (pop-to-buffer eshell-buffer-name display-comint-buffer-action) (eshell)) (goto-char (point-max)) (eshell-kill-input)