From: Lars Ingebrigtsen Date: Wed, 22 Dec 2021 12:00:55 +0000 (+0100) Subject: Use pop-to-buffer-same-window in `M-x term' X-Git-Tag: emacs-29.0.90~3515 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dbd0eef0c7c412583e5c5ca1d0d256a5f5490c10;p=emacs.git Use pop-to-buffer-same-window in `M-x term' * lisp/term.el (term): Allow `display-buffer*' customization to take effect (bug#52688). --- 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.