aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorKaroly Lorentey2004-07-13 15:45:15 +0000
committerKaroly Lorentey2004-07-13 15:45:15 +0000
commit4cb2afc64f004ba91ff0bd37cf8ca6669b228988 (patch)
treeebf8a9fc7d69d2282e75f28087cb9245f97e9865 /src/window.c
parent1705c9330e905dc35f95ad9b79d32d59db214433 (diff)
parent23b8b1803172cf4749f0260b79a89bb2ee391e79 (diff)
downloademacs-4cb2afc64f004ba91ff0bd37cf8ca6669b228988.tar.gz
emacs-4cb2afc64f004ba91ff0bd37cf8ca6669b228988.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-450 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-451 Update from CVS: lisp/subr.el (get-buffer-window-list): Doc fix. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-452 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-453 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-218
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/window.c b/src/window.c
index 5b4c8928232..b470b705397 100644
--- a/src/window.c
+++ b/src/window.c
@@ -395,7 +395,8 @@ decode_any_window (window)
395} 395}
396 396
397DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, 397DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0,
398 doc: /* Return the buffer that WINDOW is displaying. */) 398 doc: /* Return the buffer that WINDOW is displaying.
399WINDOW defaults to the selected window. */)
399 (window) 400 (window)
400 Lisp_Object window; 401 Lisp_Object window;
401{ 402{
@@ -1749,8 +1750,8 @@ DEFUN ("other-window", Fother_window, Sother_window, 1, 2, "p",
1749 doc: /* Select the ARG'th different window on this frame. 1750 doc: /* Select the ARG'th different window on this frame.
1750All windows on current frame are arranged in a cyclic order. 1751All windows on current frame are arranged in a cyclic order.
1751This command selects the window ARG steps away in that order. 1752This command selects the window ARG steps away in that order.
1752A negative ARG moves in the opposite order. If the optional second 1753A negative ARG moves in the opposite order. The optional second
1753argument ALL_FRAMES is non-nil, cycle through all frames. */) 1754argument ALL_FRAMES has the same meaning as in `next-window', which see. */)
1754 (arg, all_frames) 1755 (arg, all_frames)
1755 Lisp_Object arg, all_frames; 1756 Lisp_Object arg, all_frames;
1756{ 1757{
@@ -2068,6 +2069,7 @@ check_all_windows ()
2068DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0, 2069DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0,
2069 doc: /* Return the window least recently selected or used for display. 2070 doc: /* Return the window least recently selected or used for display.
2070Return a full-width window if possible. 2071Return a full-width window if possible.
2072A minibuffer window is never a candidate.
2071If optional argument FRAME is `visible', search all visible frames. 2073If optional argument FRAME is `visible', search all visible frames.
2072If FRAME is 0, search all visible and iconified frames. 2074If FRAME is 0, search all visible and iconified frames.
2073If FRAME is t, search all frames. 2075If FRAME is t, search all frames.
@@ -2087,6 +2089,7 @@ If FRAME is a frame, search only that frame. */)
2087 2089
2088DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0, 2090DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0,
2089 doc: /* Return the largest window in area. 2091 doc: /* Return the largest window in area.
2092A minibuffer window is never a candidate.
2090If optional argument FRAME is `visible', search all visible frames. 2093If optional argument FRAME is `visible', search all visible frames.
2091If FRAME is 0, search all visible and iconified frames. 2094If FRAME is 0, search all visible and iconified frames.
2092If FRAME is t, search all frames. 2095If FRAME is t, search all frames.
@@ -2101,6 +2104,7 @@ If FRAME is a frame, search only that frame. */)
2101 2104
2102DEFUN ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 1, 2, 0, 2105DEFUN ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 1, 2, 0,
2103 doc: /* Return a window currently displaying BUFFER, or nil if none. 2106 doc: /* Return a window currently displaying BUFFER, or nil if none.
2107BUFFER can be a buffer or a buffer name.
2104If optional argument FRAME is `visible', search all visible frames. 2108If optional argument FRAME is `visible', search all visible frames.
2105If optional argument FRAME is 0, search all visible and iconified frames. 2109If optional argument FRAME is 0, search all visible and iconified frames.
2106If FRAME is t, search all frames. 2110If FRAME is t, search all frames.
@@ -2183,6 +2187,7 @@ value is reasonable when this function is called. */)
2183DEFUN ("delete-windows-on", Fdelete_windows_on, Sdelete_windows_on, 2187DEFUN ("delete-windows-on", Fdelete_windows_on, Sdelete_windows_on,
2184 1, 2, "bDelete windows on (buffer): ", 2188 1, 2, "bDelete windows on (buffer): ",
2185 doc: /* Delete all windows showing BUFFER. 2189 doc: /* Delete all windows showing BUFFER.
2190BUFFER must be a buffer or the name of an existing buffer.
2186Optional second argument FRAME controls which frames are affected. 2191Optional second argument FRAME controls which frames are affected.
2187If optional argument FRAME is `visible', search all visible frames. 2192If optional argument FRAME is `visible', search all visible frames.
2188If FRAME is 0, search all visible and iconified frames. 2193If FRAME is 0, search all visible and iconified frames.
@@ -2212,7 +2217,8 @@ If FRAME is a frame, search only that frame. */)
2212DEFUN ("replace-buffer-in-windows", Freplace_buffer_in_windows, 2217DEFUN ("replace-buffer-in-windows", Freplace_buffer_in_windows,
2213 Sreplace_buffer_in_windows, 2218 Sreplace_buffer_in_windows,
2214 1, 1, "bReplace buffer in windows: ", 2219 1, 1, "bReplace buffer in windows: ",
2215 doc: /* Replace BUFFER with some other buffer in all windows showing it. */) 2220 doc: /* Replace BUFFER with some other buffer in all windows showing it.
2221BUFFER may be a buffer or the name of an existing buffer. */)
2216 (buffer) 2222 (buffer)
2217 Lisp_Object buffer; 2223 Lisp_Object buffer;
2218{ 2224{
@@ -3024,7 +3030,7 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p)
3024 3030
3025DEFUN ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0, 3031DEFUN ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0,
3026 doc: /* Make WINDOW display BUFFER as its contents. 3032 doc: /* Make WINDOW display BUFFER as its contents.
3027BUFFER can be a buffer or buffer name. 3033BUFFER can be a buffer or the name of an existing buffer.
3028Optional third arg KEEP-MARGINS non-nil means that WINDOW's current 3034Optional third arg KEEP-MARGINS non-nil means that WINDOW's current
3029display margins, fringe widths, and scroll bar settings are maintained; 3035display margins, fringe widths, and scroll bar settings are maintained;
3030the default is to reset these from BUFFER's local settings or the frame 3036the default is to reset these from BUFFER's local settings or the frame
@@ -3065,7 +3071,7 @@ defaults. */)
3065DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0, 3071DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0,
3066 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer. 3072 doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer.
3067If WINDOW is not already selected, make WINDOW's buffer current 3073If WINDOW is not already selected, make WINDOW's buffer current
3068and make WINDOW the frame's selected window. 3074and make WINDOW the frame's selected window. Return WINDOW.
3069Optional second arg NORECORD non-nil means 3075Optional second arg NORECORD non-nil means
3070do not put this buffer at the front of the list of recently selected ones. 3076do not put this buffer at the front of the list of recently selected ones.
3071 3077
@@ -3249,7 +3255,8 @@ See `same-window-buffer-names' and `same-window-regexps'. */)
3249DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 3, 3255DEFUN ("display-buffer", Fdisplay_buffer, Sdisplay_buffer, 1, 3,
3250 "BDisplay buffer: \nP", 3256 "BDisplay buffer: \nP",
3251 doc: /* Make BUFFER appear in some window but don't select it. 3257 doc: /* Make BUFFER appear in some window but don't select it.
3252BUFFER can be a buffer or a buffer name. 3258BUFFER must be the name of an existing buffer, or, when called from Lisp,
3259a buffer.
3253If BUFFER is shown already in some window, just use that one, 3260If BUFFER is shown already in some window, just use that one,
3254unless the window is the selected window and the optional second 3261unless the window is the selected window and the optional second
3255argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg). 3262argument NOT-THIS-WINDOW is non-nil (interactively, with prefix arg).
@@ -3592,7 +3599,11 @@ WINDOW defaults to selected one and SIZE to half its size.
3592If optional third arg HORFLAG is non-nil, split side by side 3599If optional third arg HORFLAG is non-nil, split side by side
3593and put SIZE columns in the first of the pair. In that case, 3600and put SIZE columns in the first of the pair. In that case,
3594SIZE includes that window's scroll bar, or the divider column to its right. 3601SIZE includes that window's scroll bar, or the divider column to its right.
3595Returns the newly-created window. */) 3602Interactively, all arguments are nil.
3603
3604Returns the newly created window (which is the lower or rightmost one).
3605The upper or leftmost window is the original one and remains selected.
3606See Info node `(elisp)Splitting Windows' for more details and examples.*/)
3596 (window, size, horflag) 3607 (window, size, horflag)
3597 Lisp_Object window, size, horflag; 3608 Lisp_Object window, size, horflag;
3598{ 3609{
@@ -6457,7 +6468,9 @@ the buffer; `temp-buffer-show-hook' is not run unless this function runs it. */
6457 DEFVAR_LISP ("display-buffer-function", &Vdisplay_buffer_function, 6468 DEFVAR_LISP ("display-buffer-function", &Vdisplay_buffer_function,
6458 doc: /* If non-nil, function to call to handle `display-buffer'. 6469 doc: /* If non-nil, function to call to handle `display-buffer'.
6459It will receive two args, the buffer and a flag which if non-nil means 6470It will receive two args, the buffer and a flag which if non-nil means
6460 that the currently selected window is not acceptable. 6471that the currently selected window is not acceptable.
6472It should choose or create a window, display the specified buffer in it,
6473and return the window.
6461Commands such as `switch-to-buffer-other-window' and `find-file-other-window' 6474Commands such as `switch-to-buffer-other-window' and `find-file-other-window'
6462work using this function. */); 6475work using this function. */);
6463 Vdisplay_buffer_function = Qnil; 6476 Vdisplay_buffer_function = Qnil;