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 #50 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: martin rudalics <rudalics <at> gmx.at>, 17675 <at> debbugs.gnu.org
Subject: Re: bug#17675: 24.4.50; *gud* buffer keeps on getting buried
Date: Sun, 20 May 2018 19:59:44 -0400
Michael Welsh Duggan <mwd <at> md5i.com> writes:

> And one more time, this time incorporating your suggestion more
> completely.
>
> diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
> index 24d5469..71dc574 100644
> --- a/lisp/progmodes/gud.el
> +++ b/lisp/progmodes/gud.el
> @@ -2603,7 +2603,12 @@ comint mode, which see."
>  		      file-subst)))
>  	 (filepart (and file-word (concat "-" (file-name-nondirectory file))))
>  	 (existing-buffer (get-buffer (concat "*gud" filepart "*"))))
> -    (switch-to-buffer (concat "*gud" filepart "*"))
> +    (select-window

Is this select-window call neeeded?

> +      (display-buffer
> +       (get-buffer-create (concat "*gud" filepart "*"))
> +       '(display-buffer-reuse-window 
> +         display-buffer-in-previous-window
> +         display-buffer-same-window display-buffer-pop-up-window)))
>      (when (and existing-buffer (get-buffer-process existing-buffer))
>        (error "This program is already being debugged"))
>      ;; Set the dir, in case the buffer already existed with a different dir.

Martin, I see the switch-to-buffer is still present in master now,
should it be fixed?





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.