GNU bug report logs - #17675
24.4.50; *gud* buffer keeps on getting buried

Previous Next

Package: emacs;

Reported by: Michael Welsh Duggan <mwd <at> md5i.com>

Date: Tue, 3 Jun 2014 15:18:02 UTC

Severity: normal

Found in version 24.4.50

Done: Dima Kogan <dima <at> secretsauce.net>

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Michael Welsh Duggan <mwd <at> md5i.com>
Cc: 17675 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>
Subject: Re: bug#17675: 24.4.50; *gud* buffer keeps on getting buried
Date: Sun, 20 May 2018 21:06:07 -0400
Michael Welsh Duggan <mwd <at> md5i.com> writes:

> Noam Postavsky <npostavs <at> gmail.com> writes:
>
>> Michael Welsh Duggan <mwd <at> md5i.com> writes:
>>
>>> -    (switch-to-buffer (concat "*gud" filepart "*"))
>>> +    (select-window
>>
>> Is this select-window call neeeded?
>
> I think so, since `display-buffer' does not necessarily select the window
> in which it displays the buffer, whereas the `switch-to-buffer' it is
> replacing displays the buffer in the currently selected window.
> Certainly in this case you want the "*gud*" buffer to be the selected
> buffer after this command.
>
> This bug was actually "fixed" using my original suggestion of binding
> `inhibit-same-window' to t, but I am not qualified to say which solution
> is "more correct."  See
> <URL:http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fd93edbb1cabfdf0c732dbb0c6892a515b406a65>.

The inhibit-same-window fixes this bug, but your patch above seems to
fix Bug#22374.




This bug report was last modified 6 years and 362 days ago.

Previous Next


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