GNU bug report logs - #47004
28.0.50; [PATCH] Use `pop-to-buffer-same-window' in `project-eshell'

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Simen Heggestøyl <simenheg <at> runbox.com>
Subject: bug#47004: closed (Re: bug#47004: 28.0.50; [PATCH] Use
 `pop-to-buffer-same-window' in `project-eshell')
Date: Mon, 08 Mar 2021 12:01:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#47004: 28.0.50; [PATCH] Use `pop-to-buffer-same-window' in `project-eshell'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 47004 <at> debbugs.gnu.org.

-- 
47004: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47004
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Simen Heggestøyl <simenheg <at> runbox.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 47004-done <at> debbugs.gnu.org
Subject: Re: bug#47004: 28.0.50; [PATCH] Use `pop-to-buffer-same-window' in
 `project-eshell'
Date: Mon, 08 Mar 2021 12:59:53 +0100
That was quick.

Dmitry Gutov <dgutov <at> yandex.ru> writes:

> On 08.03.2021 13:50, Simen Heggestøyl wrote:
>> 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'?
>
> Sure, please go ahead.

Went ahead.

Thanks!

-- Simen

[Message part 3 (message/rfc822, inline)]
From: Simen Heggestøyl <simenheg <at> runbox.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Dmitry Gutov <dgutov <at> yandex.ru>
Subject: 28.0.50; [PATCH] Use `pop-to-buffer-same-window' in `project-eshell'
Date: Mon, 08 Mar 2021 12:50:06 +0100
[Message part 4 (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 6 (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.