From 1f38de120d0614ad2d3b0c767f608e1225285e7d Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Tue, 29 Apr 2008 00:44:47 +0000 Subject: [PATCH] (gud-display-line): Only consider visible frames when looking for source buffer. --- lisp/progmodes/gud.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5