]> git.eshelyaron.com Git - emacs.git/commitdiff
Use `pop-to-buffer-same-window' in `project-eshell'
authorSimen Heggestøyl <simenheg@gmail.com>
Mon, 8 Mar 2021 11:38:41 +0000 (12:38 +0100)
committerSimen Heggestøyl <simenheg@runbox.com>
Mon, 8 Mar 2021 11:58:10 +0000 (12:58 +0100)
* lisp/progmodes/project.el (project-eshell): Use
`pop-to-buffer-same-window' instead of `pop-to-buffer' to match the
behavior of `M-x eshell'.

lisp/progmodes/project.el

index abe563bec04c712eee2f203f670824239a183136..d59da2496a7cd6776a6bb95caac68b5ecc1af84b 100644 (file)
@@ -924,7 +924,7 @@ if one already exists."
                   "-eshell*"))
          (eshell-buffer (get-buffer eshell-buffer-name)))
     (if (and eshell-buffer (not current-prefix-arg))
-        (pop-to-buffer eshell-buffer)
+        (pop-to-buffer-same-window eshell-buffer)
       (eshell t))))
 
 ;;;###autoload