diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 11 |
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 | { |