aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-08 21:08:38 +0000
committerRichard M. Stallman1998-02-08 21:08:38 +0000
commit53f76081244f064f1df4b83ef9e2df30efa29b18 (patch)
tree4dcf9f609aec038c17c6d5fc1e7b704bb8bfb66f /src
parent24c5a085d65642cfba1c558599756033e6038300 (diff)
downloademacs-53f76081244f064f1df4b83ef9e2df30efa29b18.tar.gz
emacs-53f76081244f064f1df4b83ef9e2df30efa29b18.zip
(Fdisplay_buffer): New arg FRAME.
(temp_output_buffer_show): Pass new arg to Fdisplay_buffer. (Fother_window_for_scrolling): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/window.c28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/window.c b/src/window.c
index 51ac3fa23a5..c40272bb918 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2097,8 +2097,9 @@ See `same-window-buffer-names' and `same-window-regexps'.")
2097 return Qnil; 2097 return Qnil;
2098} 2098}
2099 2099
2100DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 2, 2100 /* Use B so the default is (other-buffer). */
2101 "BDisplay buffer: \nP", /* Use B so the default is (other-buffer). */ 2101DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 3,
2102 "BDisplay buffer: \nP",
2102 "Make BUFFER appear in some window but don't select it.\n\ 2103 "Make BUFFER appear in some window but don't select it.\n\
2103BUFFER can be a buffer or a buffer name.\n\ 2104BUFFER can be a buffer or a buffer name.\n\
2104If BUFFER is shown already in some window, just use that one,\n\ 2105If BUFFER is shown already in some window, just use that one,\n\
@@ -2109,9 +2110,18 @@ Returns the window displaying BUFFER.\n\
2109\n\ 2110\n\
2110The variables `special-display-buffer-names', `special-display-regexps',\n\ 2111The variables `special-display-buffer-names', `special-display-regexps',\n\
2111`same-window-buffer-names', and `same-window-regexps' customize how certain\n\ 2112`same-window-buffer-names', and `same-window-regexps' customize how certain\n\
2112buffer names are handled.") 2113buffer names are handled.\n\
2113 (buffer, not_this_window) 2114\n\
2114 register Lisp_Object buffer, not_this_window; 2115If optional argument FRAME is `visible', search all visible frames.\n\
2116If FRAME is 0, search all visible and iconified frames.\n\
2117If FRAME is t, search all frames.\n\
2118If FRAME is a frame, search only that frame.\n\
2119If FRAME is nil, search only the selected frame\n\
2120 (actually the last nonminibuffer frame),\n\
2121 unless `pop-up-frames' is non-nil,\n\
2122 which means search visible and iconified frames.")
2123 (buffer, not_this_window, frame)
2124 register Lisp_Object buffer, not_this_window, frame;
2115{ 2125{
2116 register Lisp_Object window, tem; 2126 register Lisp_Object window, tem;
2117 2127
@@ -2140,7 +2150,9 @@ buffer names are handled.")
2140 /* If pop_up_frames, 2150 /* If pop_up_frames,
2141 look for a window showing BUFFER on any visible or iconified frame. 2151 look for a window showing BUFFER on any visible or iconified frame.
2142 Otherwise search only the current frame. */ 2152 Otherwise search only the current frame. */
2143 if (pop_up_frames || last_nonminibuf_frame == 0) 2153 if (! NILP (frame))
2154 tem = frame;
2155 else if (pop_up_frames || last_nonminibuf_frame == 0)
2144 XSETFASTINT (tem, 0); 2156 XSETFASTINT (tem, 0);
2145 else 2157 else
2146 XSETFRAME (tem, last_nonminibuf_frame); 2158 XSETFRAME (tem, last_nonminibuf_frame);
@@ -2301,7 +2313,7 @@ temp_output_buffer_show (buf)
2301 call1 (Vtemp_buffer_show_function, buf); 2313 call1 (Vtemp_buffer_show_function, buf);
2302 else 2314 else
2303 { 2315 {
2304 window = Fdisplay_buffer (buf, Qnil); 2316 window = Fdisplay_buffer (buf, Qnil, Qnil);
2305 2317
2306 if (XFRAME (XWINDOW (window)->frame) != selected_frame) 2318 if (XFRAME (XWINDOW (window)->frame) != selected_frame)
2307 Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window))); 2319 Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));
@@ -2973,7 +2985,7 @@ showing that buffer is used.")
2973 { 2985 {
2974 window = Fget_buffer_window (Vother_window_scroll_buffer, Qnil); 2986 window = Fget_buffer_window (Vother_window_scroll_buffer, Qnil);
2975 if (NILP (window)) 2987 if (NILP (window))
2976 window = Fdisplay_buffer (Vother_window_scroll_buffer, Qt); 2988 window = Fdisplay_buffer (Vother_window_scroll_buffer, Qt, Qnil);
2977 } 2989 }
2978 else 2990 else
2979 { 2991 {