]> git.eshelyaron.com Git - emacs.git/commitdiff
Use pop-to-buffer-same-window in `M-x term'
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 22 Dec 2021 12:00:55 +0000 (13:00 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 22 Dec 2021 12:00:55 +0000 (13:00 +0100)
* lisp/term.el (term): Allow `display-buffer*' customization to
take effect (bug#52688).

lisp/term.el

index 698bef08b2d088a277e8b0f5362d261970450b8c..e0a2f0a9a4b04b3c63c537e3d2f731f087c05d4c 100644 (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.