GNU bug report logs -
#47004
28.0.50; [PATCH] Use `pop-to-buffer-same-window' in `project-eshell'
Previous Next
Reported by: Simen Heggestøyl <simenheg <at> runbox.com>
Date: Mon, 8 Mar 2021 11:51:01 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Done: Simen Heggestøyl <simenheg <at> runbox.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi.
Could `project-eshell' be changed to use `pop-to-buffer-same-window'
instead of `pop-to-buffer' to match the behavior of `M-x eshell'?
[0001-Use-pop-to-buffer-same-window-in-project-eshell.patch (text/x-diff, inline)]
From a7109bbf417a322a7066fcdc93e43ca457b236ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simen=20Heggest=C3=B8yl?= <simenheg <at> gmail.com>
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 abe563bec0..d59da2496a 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -924,7 +924,7 @@ project-eshell
"-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.30.1
[Message part 3 (text/plain, inline)]
-- Simen
This bug report was last modified 4 years and 77 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.