From 73dc51987239df2fb544ae3dc456e5a7ace21f96 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 13 Apr 1995 18:06:46 +0000 Subject: [PATCH] (Fdisplay_buffer): Search the proper frame when the current frame is minibuffer-only. --- src/window.c | 11 +++++++---- 1 file 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.") #ifdef MULTI_FRAME /* If pop_up_frames, - look for a window showing BUFFER on any visible or iconified frame. */ - window = Fget_buffer_window (buffer, pop_up_frames ? make_number (0) : Qnil); -#else - window = Fget_buffer_window (buffer, Qnil); + look for a window showing BUFFER on any visible or iconified frame. + Otherwise search only the current frame. */ + if (pop_up_frames || last_nonminibuf_frame == 0) + XSETFASTINT (tem, 0); + else #endif + XSETFRAME (tem, last_nonminibuf_frame); + window = Fget_buffer_window (buffer, tem); if (!NILP (window) && (NILP (not_this_window) || !EQ (window, selected_window))) { -- 2.39.5