aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuc Teirlinck2004-07-11 01:20:03 +0000
committerLuc Teirlinck2004-07-11 01:20:03 +0000
commitc27559269308379f3e21ebceb3d1faebaca429f8 (patch)
treeb83db46221ffa77d24775f54cdd8b853297e0d26 /src
parent90dc192227cbe9bad6096090f9ba5661cb52e0f9 (diff)
downloademacs-c27559269308379f3e21ebceb3d1faebaca429f8.tar.gz
emacs-c27559269308379f3e21ebceb3d1faebaca429f8.zip
(Fwindow_buffer, Fother_window, Fget_lru_window)
(Fget_largest_window, Fget_buffer_window, Fdelete_windows_on) (Freplace_buffer_in_windows, Fset_window_buffer) (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes. (syms_of_window): Expand docstring of `display-buffer-function'.
Diffstat (limited to 'src')
-rw-r--r--src/window.c31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/window.c b/src/window.c
index ab15a7d1b21..c09eaab85ba 100644
--- a/src/window.c
+++ b/src/window.c
@@ -393,7 +393,8 @@ decode_any_window (window)
393} 393}
394 394
395DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, 395DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0,
396 doc: /* Return the buffer that WINDOW is displaying. */) 396 doc: /* Return the buffer that WINDOW is displaying.
397WINDOW defaults to the selected window. */)
397 (window) 398 (window)
398 Lisp_Object window; 399 Lisp_Object window;
399{ 400{
@@ -1747,8 +1748,8 @@ DEFUN ("other-window", Fother_window, Sother_window, 1, 2, "p",
1747 doc: /* Select the ARG'th different window on this frame. 1748 doc: /* Select the ARG'th different window on this frame.
1748All windows on current frame are arranged in a cyclic order. 1749All windows on current frame are arranged in a cyclic order.
1749This command selects the window ARG steps away in that order. 1750This command selects the window ARG steps away in that order.
1750A negative ARG moves in the opposite order. If the optional second 1751A negative ARG moves in the opposite order. The optional second
1751argument ALL_FRAMES is non-nil, cycle through all frames. */) 1752argument ALL_FRAMES has the same meaning as in `next-window', which see. */)
1752 (arg, all_frames) 1753 (arg, all_frames)
1753 Lisp_Object arg, all_frames; 1754 Lisp_Object arg, all_frames;
1754{ 1755{
@@ -2066,6 +2067,7 @@ check_all_windows ()
2066DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0, 2067DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0,
2067 doc: /* Return the window least recently selected or used for display. 2068 doc: /* Return the window least recently selected or used for display.
2068Return a full-width window if possible. 2069Return a full-width window if possible.
2070A minibuffer window is never a candidate.
2069If optional argument FRAME is `visible', search all visible frames. 2071If optional argument FRAME is `visible', search all visible frames.
2070If FRAME is 0, search all visible and iconified frames. 2072If FRAME is 0, search all visible and iconified frames.
2071If FRAME is t, search all frames. 2073If FRAME is t, search all frames.
@@ -2085,6 +2087,7 @@ If FRAME is a frame, search only that frame. */)
2085 2087
2086DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0, 2088DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0,
2087 doc: /* Return the largest window in area. 2089 doc: /* Return the largest window in area.
2090A minibuffer window is never a candidate.
2088If optional argument FRAME is `visible', search all visible frames. 2091If optional argument FRAME is `visible', search all visible frames.
2089If FRAME is 0, search all visible and iconified frames. 2092If FRAME is 0, search all visible and iconified frames.
2090If FRAME is t, search all frames. 2093If FRAME is t, search all frames.
@@ -2099,6 +2102,7 @@ If FRAME is a frame, search only that frame. */)
2099 2102
2100DEFUN ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 1, 2, 0, 2103DEFUN ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 1, 2, 0,
2101 doc: /* Return a window currently displaying BUFFER, or nil if none. 2104 doc: /* Return a window currently displaying BUFFER, or nil if none.
2105BUFFER can be a buffer or a buffer name.
2102If optional argument FRAME is `visible', search all visible frames. 2106If optional argument FRAME is `visible', search all visible frames.
2103If optional argument FRAME is 0, search all visible and iconified frames. 2107If optional argument FRAME is 0, search all visible and iconified frames.
2104If FRAME is t, search all frames. 2108If FRAME is t, search all frames.
@@ -2181,6 +2185,7 @@ value is reasonable when this function is called. */)
2181DEFUN ("delete-windows-on", Fdelete_windows_on, Sdelete_windows_on, 2185DEFUN ("delete-windows-on", Fdelete_windows_on, Sdelete_windows_on,
2182 1, 2, "bDelete windows on (buffer): ", 2186 1, 2, "bDelete windows on (buffer): ",
2183 doc: /* Delete all windows showing BUFFER. 2187 doc: /* Delete all windows showing BUFFER.
2188BUFFER must be a buffer or the name of an existing buffer.
2184Optional second argument FRAME controls which frames are affected. 2189Optional second argument FRAME controls which frames are affected.
2185If optional argument FRAME is `visible', search all visible frames. 2190If optional argument FRAME is `visible', search all visible frames.
2186If FRAME is 0, search all visible and iconified frames. 2191If FRAME is 0, search all visible and iconified frames.
@@ -2210,7 +2215,8 @@ If FRAME is a frame, search only that frame. */)
2210DEFUN ("replace-buffer-in-windows", Freplace_buffer_in_windows, 2215DEFUN ("replace-buffer-in-windows", Freplace_buffer_in_windows,
2211 Sreplace_buffer_in_windows, 2216 Sreplace_buffer_in_windows,
2212 1, 1, "bReplace buffer in windows: ", 2217 1, 1, "bReplace buffer in windows: ",
2213 doc: /* Replace BUFFER with some other buffer in all windows showing it. */) 2218 doc: /* Replace BUFFER with some other buffer in all windows showing it.
2219BUFFER may be a buffer or the name of an existing buffer. */)
2214 (buffer) 2220 (buffer)
2215 Lisp_Object buffer; 2221 Lisp_Object buffer;
2216{ 2222{
@@ -3022,7 +3028,7 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p)
3022 3028
3023DEFUN ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0, 3029DEFUN ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0,
3024 doc: /* Make WINDOW display BUFFER as its contents. 3030 doc: /* Make WINDOW display BUFFER as its contents.
3025BUFFER can be a buffer or buffer name. 3031BUFFER can be a buffer or the name of an existing buffer.
3026Optional third arg KEEP-MARGINS non-nil means that WINDOW's current 3032Optional third arg KEEP-MARGINS non-nil means that WINDOW's current
3027display margins, fringe widths, and scroll bar settings are maintained; 3033display margins, fringe widths, and scroll bar settings are maintained;
3028the default is to reset these from BUFFER's local settings or the frame 3034the default is to reset these from BUFFER's local settings or the frame
@@ -3063,7 +3069,7 @@ defaults. */)
3063DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0, 3069DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0,
3064 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer. 3070 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer.
3065If WINDOW is not already selected, make WINDOW's buffer current 3071If WINDOW is not already selected, make WINDOW's buffer current
3066and make WINDOW the frame's selected window. 3072and make WINDOW the frame's selected window. Return WINDOW.
3067Optional second arg NORECORD non-nil means 3073Optional second arg NORECORD non-nil means
3068do not put this buffer at the front of the list of recently selected ones. 3074do not put this buffer at the front of the list of recently selected ones.
3069 3075
@@ -3247,7 +3253,8 @@ See `same-window-buffer-names' and `same-window-regexps'. */)
3247DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 3, 3253DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 3,
3248 "BDisplay buffer: \nP", 3254 "BDisplay buffer: \nP",
3249 doc: /* Make BUFFER appear in some window but don't select it. 3255 doc: /* Make BUFFER appear in some window but don't select it.
3250BUFFER can be a buffer or a buffer name. 3256BUFFER must be the name of an existing buffer, or, when called from Lisp,
3257a buffer.
3251If BUFFER is shown already in some window, just use that one, 3258If BUFFER is shown already in some window, just use that one,
3252unless the window is the selected window and the optional second 3259unless the window is the selected window and the optional second
3253argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg). 3260argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg).
@@ -3590,7 +3597,11 @@ WINDOW defaults to selected one and SIZE to half its size.
3590If optional third arg HORFLAG is non-nil, split side by side 3597If optional third arg HORFLAG is non-nil, split side by side
3591and put SIZE columns in the first of the pair. In that case, 3598and put SIZE columns in the first of the pair. In that case,
3592SIZE includes that window's scroll bar, or the divider column to its right. 3599SIZE includes that window's scroll bar, or the divider column to its right.
3593Returns the newly-created window. */) 3600Interactively, all arguments are nil.
3601
3602Returns the newly created window (which is the lower or rightmost one).
3603The upper or leftmost window is the original one and remains selected.
3604See Info node `(elisp)Splitting Windows' for more details and examples.*/)
3594 (window, size, horflag) 3605 (window, size, horflag)
3595 Lisp_Object window, size, horflag; 3606 Lisp_Object window, size, horflag;
3596{ 3607{
@@ -6455,7 +6466,9 @@ the buffer; `temp-buffer-show-hook' is not run unless this function runs it. */
6455 DEFVAR_LISP ("display-buffer-function", &Vdisplay_buffer_function, 6466 DEFVAR_LISP ("display-buffer-function", &Vdisplay_buffer_function,
6456 doc: /* If non-nil, function to call to handle `display-buffer'. 6467 doc: /* If non-nil, function to call to handle `display-buffer'.
6457It will receive two args, the buffer and a flag which if non-nil means 6468It will receive two args, the buffer and a flag which if non-nil means
6458 that the currently selected window is not acceptable. 6469that the currently selected window is not acceptable.
6470It should choose or create a window, display the specified buffer in it,
6471and return the window.
6459Commands such as `switch-to-buffer-other-window' and `find-file-other-window' 6472Commands such as `switch-to-buffer-other-window' and `find-file-other-window'
6460work using this function. */); 6473work using this function. */);
6461 Vdisplay_buffer_function = Qnil; 6474 Vdisplay_buffer_function = Qnil;