diff options
| author | Luc Teirlinck | 2004-07-11 01:20:03 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-07-11 01:20:03 +0000 |
| commit | c27559269308379f3e21ebceb3d1faebaca429f8 (patch) | |
| tree | b83db46221ffa77d24775f54cdd8b853297e0d26 /src | |
| parent | 90dc192227cbe9bad6096090f9ba5661cb52e0f9 (diff) | |
| download | emacs-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.c | 31 |
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 | ||
| 395 | DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, | 395 | DEFUN ("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. |
| 397 | WINDOW 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. |
| 1748 | All windows on current frame are arranged in a cyclic order. | 1749 | All windows on current frame are arranged in a cyclic order. |
| 1749 | This command selects the window ARG steps away in that order. | 1750 | This command selects the window ARG steps away in that order. |
| 1750 | A negative ARG moves in the opposite order. If the optional second | 1751 | A negative ARG moves in the opposite order. The optional second |
| 1751 | argument ALL_FRAMES is non-nil, cycle through all frames. */) | 1752 | argument 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 () | |||
| 2066 | DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0, | 2067 | DEFUN ("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. |
| 2068 | Return a full-width window if possible. | 2069 | Return a full-width window if possible. |
| 2070 | A minibuffer window is never a candidate. | ||
| 2069 | If optional argument FRAME is `visible', search all visible frames. | 2071 | If optional argument FRAME is `visible', search all visible frames. |
| 2070 | If FRAME is 0, search all visible and iconified frames. | 2072 | If FRAME is 0, search all visible and iconified frames. |
| 2071 | If FRAME is t, search all frames. | 2073 | If FRAME is t, search all frames. |
| @@ -2085,6 +2087,7 @@ If FRAME is a frame, search only that frame. */) | |||
| 2085 | 2087 | ||
| 2086 | DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0, | 2088 | DEFUN ("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. |
| 2090 | A minibuffer window is never a candidate. | ||
| 2088 | If optional argument FRAME is `visible', search all visible frames. | 2091 | If optional argument FRAME is `visible', search all visible frames. |
| 2089 | If FRAME is 0, search all visible and iconified frames. | 2092 | If FRAME is 0, search all visible and iconified frames. |
| 2090 | If FRAME is t, search all frames. | 2093 | If FRAME is t, search all frames. |
| @@ -2099,6 +2102,7 @@ If FRAME is a frame, search only that frame. */) | |||
| 2099 | 2102 | ||
| 2100 | DEFUN ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 1, 2, 0, | 2103 | DEFUN ("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. |
| 2105 | BUFFER can be a buffer or a buffer name. | ||
| 2102 | If optional argument FRAME is `visible', search all visible frames. | 2106 | If optional argument FRAME is `visible', search all visible frames. |
| 2103 | If optional argument FRAME is 0, search all visible and iconified frames. | 2107 | If optional argument FRAME is 0, search all visible and iconified frames. |
| 2104 | If FRAME is t, search all frames. | 2108 | If FRAME is t, search all frames. |
| @@ -2181,6 +2185,7 @@ value is reasonable when this function is called. */) | |||
| 2181 | DEFUN ("delete-windows-on", Fdelete_windows_on, Sdelete_windows_on, | 2185 | DEFUN ("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. |
| 2188 | BUFFER must be a buffer or the name of an existing buffer. | ||
| 2184 | Optional second argument FRAME controls which frames are affected. | 2189 | Optional second argument FRAME controls which frames are affected. |
| 2185 | If optional argument FRAME is `visible', search all visible frames. | 2190 | If optional argument FRAME is `visible', search all visible frames. |
| 2186 | If FRAME is 0, search all visible and iconified frames. | 2191 | If FRAME is 0, search all visible and iconified frames. |
| @@ -2210,7 +2215,8 @@ If FRAME is a frame, search only that frame. */) | |||
| 2210 | DEFUN ("replace-buffer-in-windows", Freplace_buffer_in_windows, | 2215 | DEFUN ("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. |
| 2219 | BUFFER 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 | ||
| 3023 | DEFUN ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0, | 3029 | DEFUN ("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. |
| 3025 | BUFFER can be a buffer or buffer name. | 3031 | BUFFER can be a buffer or the name of an existing buffer. |
| 3026 | Optional third arg KEEP-MARGINS non-nil means that WINDOW's current | 3032 | Optional third arg KEEP-MARGINS non-nil means that WINDOW's current |
| 3027 | display margins, fringe widths, and scroll bar settings are maintained; | 3033 | display margins, fringe widths, and scroll bar settings are maintained; |
| 3028 | the default is to reset these from BUFFER's local settings or the frame | 3034 | the default is to reset these from BUFFER's local settings or the frame |
| @@ -3063,7 +3069,7 @@ defaults. */) | |||
| 3063 | DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0, | 3069 | DEFUN ("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. |
| 3065 | If WINDOW is not already selected, make WINDOW's buffer current | 3071 | If WINDOW is not already selected, make WINDOW's buffer current |
| 3066 | and make WINDOW the frame's selected window. | 3072 | and make WINDOW the frame's selected window. Return WINDOW. |
| 3067 | Optional second arg NORECORD non-nil means | 3073 | Optional second arg NORECORD non-nil means |
| 3068 | do not put this buffer at the front of the list of recently selected ones. | 3074 | do 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'. */) | |||
| 3247 | DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 3, | 3253 | DEFUN ("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. |
| 3250 | BUFFER can be a buffer or a buffer name. | 3256 | BUFFER must be the name of an existing buffer, or, when called from Lisp, |
| 3257 | a buffer. | ||
| 3251 | If BUFFER is shown already in some window, just use that one, | 3258 | If BUFFER is shown already in some window, just use that one, |
| 3252 | unless the window is the selected window and the optional second | 3259 | unless the window is the selected window and the optional second |
| 3253 | argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg). | 3260 | argument 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. | |||
| 3590 | If optional third arg HORFLAG is non-nil, split side by side | 3597 | If optional third arg HORFLAG is non-nil, split side by side |
| 3591 | and put SIZE columns in the first of the pair. In that case, | 3598 | and put SIZE columns in the first of the pair. In that case, |
| 3592 | SIZE includes that window's scroll bar, or the divider column to its right. | 3599 | SIZE includes that window's scroll bar, or the divider column to its right. |
| 3593 | Returns the newly-created window. */) | 3600 | Interactively, all arguments are nil. |
| 3601 | |||
| 3602 | Returns the newly created window (which is the lower or rightmost one). | ||
| 3603 | The upper or leftmost window is the original one and remains selected. | ||
| 3604 | See 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'. |
| 6457 | It will receive two args, the buffer and a flag which if non-nil means | 6468 | It will receive two args, the buffer and a flag which if non-nil means |
| 6458 | that the currently selected window is not acceptable. | 6469 | that the currently selected window is not acceptable. |
| 6470 | It should choose or create a window, display the specified buffer in it, | ||
| 6471 | and return the window. | ||
| 6459 | Commands such as `switch-to-buffer-other-window' and `find-file-other-window' | 6472 | Commands such as `switch-to-buffer-other-window' and `find-file-other-window' |
| 6460 | work using this function. */); | 6473 | work using this function. */); |
| 6461 | Vdisplay_buffer_function = Qnil; | 6474 | Vdisplay_buffer_function = Qnil; |