# HG changeset patch # User Nick Roberts # Date 1209429887 0 # Node ID 24da79778167bb8f126f869b7e02aec496a86070 # Parent 52a0ed7601cbd1c0dd9c5d017223526e4dd32f0d (gud-display-line): Only consider visible frames when looking for source buffer. diff -r 52a0ed7601cb -r 24da79778167 lisp/progmodes/gud.el --- 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