diff options
| author | Richard M. Stallman | 1993-12-23 01:07:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-23 01:07:58 +0000 |
| commit | 5141b90115f1a37a9bb7fb599df5b08b1f12a385 (patch) | |
| tree | 6615a0990e5332ec38dc80d13126735c0630e594 /src | |
| parent | d063751a9741ba9c00d600fc1e57cd1ef2b5cb44 (diff) | |
| download | emacs-5141b90115f1a37a9bb7fb599df5b08b1f12a385.tar.gz emacs-5141b90115f1a37a9bb7fb599df5b08b1f12a385.zip | |
(Fdisplay_buffer): If pop_up_frames, pass t to Fget_buffer_window.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index a288774914b..d521d607995 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1674,6 +1674,7 @@ BUFFER can be a buffer or a buffer name.\n\ | |||
| 1674 | If BUFFER is shown already in some window, just use that one,\n\ | 1674 | If BUFFER is shown already in some window, just use that one,\n\ |
| 1675 | unless the window is the selected window and the optional second\n\ | 1675 | unless the window is the selected window and the optional second\n\ |
| 1676 | argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg).\n\ | 1676 | argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg).\n\ |
| 1677 | If `pop-up-frames' is non-nil, make a new frame if no window shows BUFFER.\n\ | ||
| 1677 | Returns the window displaying BUFFER.") | 1678 | Returns the window displaying BUFFER.") |
| 1678 | (buffer, not_this_window) | 1679 | (buffer, not_this_window) |
| 1679 | register Lisp_Object buffer, not_this_window; | 1680 | register Lisp_Object buffer, not_this_window; |
| @@ -1690,7 +1691,8 @@ Returns the window displaying BUFFER.") | |||
| 1690 | && XBUFFER (XWINDOW (selected_window)->buffer) == XBUFFER (buffer)) | 1691 | && XBUFFER (XWINDOW (selected_window)->buffer) == XBUFFER (buffer)) |
| 1691 | return selected_window; | 1692 | return selected_window; |
| 1692 | 1693 | ||
| 1693 | window = Fget_buffer_window (buffer, Qnil); | 1694 | /* If pop_up_frames, look for a window on any frame, showing BUFFER. */ |
| 1695 | window = Fget_buffer_window (buffer, pop_up_frames ? Qt : Qnil); | ||
| 1694 | if (!NILP (window) | 1696 | if (!NILP (window) |
| 1695 | && (NILP (not_this_window) || !EQ (window, selected_window))) | 1697 | && (NILP (not_this_window) || !EQ (window, selected_window))) |
| 1696 | return window; | 1698 | return window; |