]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fdisplay_buffer): If pop_up_frames != 0,
authorRichard M. Stallman <rms@gnu.org>
Tue, 8 Mar 1994 23:28:14 +0000 (23:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 8 Mar 1994 23:28:14 +0000 (23:28 +0000)
consider just visible frames when looking for existing window.

src/window.c

index 558426135f6db6049223f14ac07d2605be9b4d6f..3d80734234612a03c270ad69cad47de0cda1a065 100644 (file)
@@ -1724,8 +1724,9 @@ Returns the window displaying BUFFER.")
       && XBUFFER (XWINDOW (selected_window)->buffer) == XBUFFER (buffer))
     return selected_window;
 
-  /* If pop_up_frames, look for a window on any frame, showing BUFFER.  */
-  window = Fget_buffer_window (buffer, pop_up_frames ? Qt : Qnil);
+  /* If pop_up_frames,
+     look for a window showing BUFFER on any visible frame.  */
+  window = Fget_buffer_window (buffer, pop_up_frames ? Qvisible : Qnil);
   if (!NILP (window)
       && (NILP (not_this_window) || !EQ (window, selected_window)))
     return window;