changeset 6262:930d259c1f95

(Fdisplay_buffer): If pop_up_frames != 0, consider just visible frames when looking for existing window.
author Richard M. Stallman <rms@gnu.org>
date Tue, 08 Mar 1994 23:28:14 +0000
parents b838645548a0
children f2b01e6e4a1f
files src/window.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Tue Mar 08 22:59:20 1994 +0000
+++ b/src/window.c	Tue Mar 08 23:28:14 1994 +0000
@@ -1724,8 +1724,9 @@
       && 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;