changeset 94446:24da79778167

(gud-display-line): Only consider visible frames when looking for source buffer.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 29 Apr 2008 00:44:47 +0000
parents 52a0ed7601cb
children 45acd5e62f88
files lisp/progmodes/gud.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/gud.el	Tue Apr 29 00:41:23 2008 +0000
+++ b/lisp/progmodes/gud.el	Tue Apr 29 00:44:47 2008 +0000
@@ -2689,10 +2689,10 @@
 	 (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