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

* lisp/term.el (term): Allow `display-buffer*' customization to
take effect (bug#52688).
This commit is contained in:
Lars Ingebrigtsen 2021-12-22 13:00:55 +01:00
parent 141bf182da
commit dbd0eef0c7

View file

@ -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.