1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00

Have gud-display-line not display source buffer in gud window.

* lisp/progmodes/gud.el (gud-display-line): Make display-buffer
not reuse selected window.  (Bug#17675, Bug#19901, Bug#20034)
This commit is contained in:
Dima Kogan 2015-03-18 08:15:54 +01:00 committed by Martin Rudalics
parent 9fdc166ee0
commit fd93edbb1c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-03-18 Dima Kogan <dima@secretsauce.net>
Have gud-display-line not display source buffer in gud window.
* lisp/progmodes/gud.el (gud-display-line): Make display-buffer
not reuse selected window. (Bug#17675, Bug#19901, Bug#20034)
2015-03-17 Tassilo Horn <tsdh@gnu.org> 2015-03-17 Tassilo Horn <tsdh@gnu.org>
* emacs-lisp/byte-run.el (macro-declarations-alist): New * emacs-lisp/byte-run.el (macro-declarations-alist): New

View File

@ -2813,7 +2813,7 @@ Obeying it means displaying in another window the specified file and line."
(gud-find-file true-file))) (gud-find-file true-file)))
(window (and buffer (window (and buffer
(or (get-buffer-window buffer) (or (get-buffer-window buffer)
(display-buffer buffer)))) (display-buffer buffer '(nil (inhibit-same-window . t))))))
(pos)) (pos))
(when buffer (when buffer
(with-current-buffer buffer (with-current-buffer buffer