From dbd0eef0c7c412583e5c5ca1d0d256a5f5490c10 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 22 Dec 2021 13:00:55 +0100 Subject: [PATCH] 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 698bef08b2d..e0a2f0a9a4b 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1532,7 +1532,7 @@ commands to use in that buffer. shell-file-name)))) (set-buffer (make-term "terminal" program)) (term-char-mode) - (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. -- 2.39.2