summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-12-22 13:00:55 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-12-22 13:00:55 +0100
commitdbd0eef0c7c412583e5c5ca1d0d256a5f5490c10 (patch)
tree52442d7c0563a2eb94930e0db0c7353c7c3b7a70 /lisp/term.el
parent141bf182da0043c9273b7885e687cfea7f6268b0 (diff)
downloademacs-dbd0eef0c7c412583e5c5ca1d0d256a5f5490c10.tar.gz
Use pop-to-buffer-same-window in `M-x term'
* lisp/term.el (term): Allow `display-buffer*' customization to take effect (bug#52688).
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el2
1 files changed, 1 insertions, 1 deletions
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.