[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dbd0eef: Use pop-to-buffer-same-window in `M-x term'

From: Lars Ingebrigtsen
Subject: master dbd0eef: Use pop-to-buffer-same-window in `M-x term'
Date: Wed, 22 Dec 2021 07:01:44 -0500 (EST)

branch: master
commit dbd0eef0c7c412583e5c5ca1d0d256a5f5490c10
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Use pop-to-buffer-same-window in `M-x term'
    * lisp/term.el (term): Allow `display-buffer*' customization to
    take effect (bug#52688).
 lisp/term.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/term.el b/lisp/term.el
index 698bef0..e0a2f0a 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1532,7 +1532,7 @@ commands to use in that buffer.
   (set-buffer (make-term "terminal" program))
-  (switch-to-buffer "*terminal*"))
+  (pop-to-buffer-same-window "*terminal*"))
 (defun term-exec (buffer name command startfile switches)
   "Start up a process in buffer for term modes.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]