changeset 17628:0b6db83d4663

(Fdisplay_buffer): If we give up and try other frames, look again for a window in those frames already showing BUFFER.
author Richard M. Stallman <rms@gnu.org>
date Sat, 03 May 1997 06:12:28 +0000
parents 2492168c1d05
children fa92ac645cf0
files src/window.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Sat May 03 05:22:46 1997 +0000
+++ b/src/window.c	Sat May 03 06:12:28 1997 +0000
@@ -2219,14 +2219,21 @@
 	      && window_height (window) >= window_min_height << 1)
 	    window = Fsplit_window (window, Qnil, Qnil);
 	  /* If Fget_lru_window returned nil, try other approaches.  */
+
 	  /* Try visible frames first.  */
 	  if (NILP (window))
+	    window = Fget_buffer_window (buffer, Qvisible);
+	  if (NILP (window))
 	    window = Fget_largest_window (Qvisible);
 	  /* If that didn't work, try iconified frames.  */
 	  if (NILP (window))
+	    window = Fget_buffer_window (buffer, make_number (0));
+	  if (NILP (window))
 	    window = Fget_largest_window (make_number (0));
 	  /* Try invisible frames.  */
 	  if (NILP (window))
+	    window = Fget_buffer_window (buffer, Qt);
+	  if (NILP (window))
 	    window = Fget_largest_window (Qt);
 	  /* As a last resort, make a new frame.  */
 	  if (NILP (window))