From 432c1aaa80ce109250a93f50858a03ce3d01ca34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simen=20Heggest=C3=B8yl?= Date: Mon, 8 Mar 2021 12:38:41 +0100 Subject: [PATCH] Use `pop-to-buffer-same-window' in `project-eshell' * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index abe563bec04..d59da2496a7 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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 -- 2.39.5