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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47004 in the body.
You can then email your comments to 47004 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#47004; Package emacs. (Mon, 08 Mar 2021 11:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simen Heggestøyl <simenheg <at> runbox.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 08 Mar 2021 11:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 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

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47004; Package emacs. (Mon, 08 Mar 2021 11:56:02 GMT) Full text and rfc822 format available.

Message #8 received at 47004 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Simen Heggestøyl <simenheg <at> runbox.com>,
 47004 <at> debbugs.gnu.org
Subject: Re: bug#47004: 28.0.50; [PATCH] Use `pop-to-buffer-same-window' in
 `project-eshell'
Date: Mon, 8 Mar 2021 13:55:38 +0200
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.




Reply sent to Simen Heggestøyl <simenheg <at> runbox.com>:
You have taken responsibility. (Mon, 08 Mar 2021 12:01:01 GMT) Full text and rfc822 format available.

Notification sent to Simen Heggestøyl <simenheg <at> runbox.com>:
bug acknowledged by developer. (Mon, 08 Mar 2021 12:01:01 GMT) Full text and rfc822 format available.

Message #13 received at 47004-done <at> debbugs.gnu.org (full text, mbox):

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Apr 2021 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.