aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-03 06:12:28 +0000
committerRichard M. Stallman1997-05-03 06:12:28 +0000
commit48d9379dfee53e55b3e273dcca5bc3bcb8a06b15 (patch)
treea129e025276a4bd275c3b809b4e4091b60ac2916 /src
parentbcabbf77d387f5bd7a93d961e274ba9b6ec511fa (diff)
downloademacs-48d9379dfee53e55b3e273dcca5bc3bcb8a06b15.tar.gz
emacs-48d9379dfee53e55b3e273dcca5bc3bcb8a06b15.zip
(Fdisplay_buffer): If we give up and try other frames,
look again for a window in those frames already showing BUFFER.
Diffstat (limited to 'src')
-rw-r--r--src/window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 982a7d1d96d..cf45ea30021 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2219,14 +2219,21 @@ buffer names are handled.")
2219 && window_height (window) >= window_min_height << 1) 2219 && window_height (window) >= window_min_height << 1)
2220 window = Fsplit_window (window, Qnil, Qnil); 2220 window = Fsplit_window (window, Qnil, Qnil);
2221 /* If Fget_lru_window returned nil, try other approaches. */ 2221 /* If Fget_lru_window returned nil, try other approaches. */
2222
2222 /* Try visible frames first. */ 2223 /* Try visible frames first. */
2223 if (NILP (window)) 2224 if (NILP (window))
2225 window = Fget_buffer_window (buffer, Qvisible);
2226 if (NILP (window))
2224 window = Fget_largest_window (Qvisible); 2227 window = Fget_largest_window (Qvisible);
2225 /* If that didn't work, try iconified frames. */ 2228 /* If that didn't work, try iconified frames. */
2226 if (NILP (window)) 2229 if (NILP (window))
2230 window = Fget_buffer_window (buffer, make_number (0));
2231 if (NILP (window))
2227 window = Fget_largest_window (make_number (0)); 2232 window = Fget_largest_window (make_number (0));
2228 /* Try invisible frames. */ 2233 /* Try invisible frames. */
2229 if (NILP (window)) 2234 if (NILP (window))
2235 window = Fget_buffer_window (buffer, Qt);
2236 if (NILP (window))
2230 window = Fget_largest_window (Qt); 2237 window = Fget_largest_window (Qt);
2231 /* As a last resort, make a new frame. */ 2238 /* As a last resort, make a new frame. */
2232 if (NILP (window)) 2239 if (NILP (window))