aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorKarl Heuer1995-04-13 18:06:46 +0000
committerKarl Heuer1995-04-13 18:06:46 +0000
commit73dc51987239df2fb544ae3dc456e5a7ace21f96 (patch)
tree39110265951de7f20eb458af56bb23df74a8246c /src/window.c
parentc0fa5a0bf35a5b9b051e1ce12188f74a21621483 (diff)
downloademacs-73dc51987239df2fb544ae3dc456e5a7ace21f96.tar.gz
emacs-73dc51987239df2fb544ae3dc456e5a7ace21f96.zip
(Fdisplay_buffer): Search the proper frame when the
current frame is minibuffer-only.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index daefb968f91..5ada705a351 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1932,11 +1932,14 @@ Returns the window displaying BUFFER.")
1932 1932
1933#ifdef MULTI_FRAME 1933#ifdef MULTI_FRAME
1934 /* If pop_up_frames, 1934 /* If pop_up_frames,
1935 look for a window showing BUFFER on any visible or iconified frame. */ 1935 look for a window showing BUFFER on any visible or iconified frame.
1936 window = Fget_buffer_window (buffer, pop_up_frames ? make_number (0) : Qnil); 1936 Otherwise search only the current frame. */
1937#else 1937 if (pop_up_frames || last_nonminibuf_frame == 0)
1938 window = Fget_buffer_window (buffer, Qnil); 1938 XSETFASTINT (tem, 0);
1939 else
1939#endif 1940#endif
1941 XSETFRAME (tem, last_nonminibuf_frame);
1942 window = Fget_buffer_window (buffer, tem);
1940 if (!NILP (window) 1943 if (!NILP (window)
1941 && (NILP (not_this_window) || !EQ (window, selected_window))) 1944 && (NILP (not_this_window) || !EQ (window, selected_window)))
1942 { 1945 {