forked from mirrors/org-mode
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. ]
This commit is contained in:
parent
1a3dd6ec85
commit
5d5a7832ec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue