# HG changeset patch # User Richard M. Stallman # Date 756608878 0 # Node ID 823c0cf7bbc8bfe8900b1b3f6206a1396d2a21ab # Parent 6646271e8d320dfd5c0f48b1f7b7086e3d6ab82e (Fdisplay_buffer): If pop_up_frames, pass t to Fget_buffer_window. diff -r 6646271e8d32 -r 823c0cf7bbc8 src/window.c --- a/src/window.c Thu Dec 23 01:05:51 1993 +0000 +++ b/src/window.c Thu Dec 23 01:07:58 1993 +0000 @@ -1674,6 +1674,7 @@ If BUFFER is shown already in some window, just use that one,\n\ unless the window is the selected window and the optional second\n\ argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg).\n\ +If `pop-up-frames' is non-nil, make a new frame if no window shows BUFFER.\n\ Returns the window displaying BUFFER.") (buffer, not_this_window) register Lisp_Object buffer, not_this_window; @@ -1690,7 +1691,8 @@ && XBUFFER (XWINDOW (selected_window)->buffer) == XBUFFER (buffer)) return selected_window; - window = Fget_buffer_window (buffer, Qnil); + /* If pop_up_frames, look for a window on any frame, showing BUFFER. */ + window = Fget_buffer_window (buffer, pop_up_frames ? Qt : Qnil); if (!NILP (window) && (NILP (not_this_window) || !EQ (window, selected_window))) return window;