From: Nick Roberts Date: Tue, 29 Apr 2008 00:44:47 +0000 (+0000) Subject: (gud-display-line): Only consider visible X-Git-Tag: emacs-pretest-23.0.90~5970 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1f38de120d0614ad2d3b0c767f608e1225285e7d;p=emacs.git (gud-display-line): Only consider visible frames when looking for source buffer. --- diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 8bfccaabb6d..60fd24c96fd 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -2689,10 +2689,10 @@ Obeying it means displaying in another window the specified file and line." (window (and buffer (or (get-buffer-window buffer) (if (memq gud-minor-mode '(gdbmi gdba)) - (or (if (get-buffer-window buffer 0) - (display-buffer buffer nil 0)) + (or (if (get-buffer-window buffer 'visible) + (display-buffer buffer nil 'visible)) (unless (gdb-display-source-buffer buffer) - (gdb-display-buffer buffer nil)))) + (gdb-display-buffer buffer nil 'visible)))) (display-buffer buffer)))) (pos)) (if buffer