aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/alloc.c2
-rw-r--r--src/buffer.c14
-rw-r--r--src/window.c31
4 files changed, 51 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bbedc86886e..b3a9386da86 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,18 @@
12004-07-12 Kim F. Storm <storm@cua.dk>
2
3 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
4 if GC_MARK_STACK.
5
62004-07-10 Luc Teirlinck <teirllm@auburn.edu>
7
8 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
9
10 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
11 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
12 (Freplace_buffer_in_windows, Fset_window_buffer)
13 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
14 (syms_of_window): Expand docstring of `display-buffer-function'.
15
12004-07-09 Luc Teirlinck <teirllm@auburn.edu> 162004-07-09 Luc Teirlinck <teirllm@auburn.edu>
2 17
3 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time) 18 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
diff --git a/src/alloc.c b/src/alloc.c
index 5dc8d186369..955f274c270 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5035,6 +5035,7 @@ mark_object (arg)
5035 break; 5035 break;
5036 5036
5037 case Lisp_Misc_Save_Value: 5037 case Lisp_Misc_Save_Value:
5038#if GC_MARK_STACK
5038 { 5039 {
5039 register struct Lisp_Save_Value *ptr = XSAVE_VALUE (obj); 5040 register struct Lisp_Save_Value *ptr = XSAVE_VALUE (obj);
5040 /* If DOGC is set, POINTER is the address of a memory 5041 /* If DOGC is set, POINTER is the address of a memory
@@ -5047,6 +5048,7 @@ mark_object (arg)
5047 mark_maybe_object (*p); 5048 mark_maybe_object (*p);
5048 } 5049 }
5049 } 5050 }
5051#endif
5050 break; 5052 break;
5051 5053
5052 case Lisp_Misc_Overlay: 5054 case Lisp_Misc_Overlay:
diff --git a/src/buffer.c b/src/buffer.c
index 031f5da8e6e..c5783ade2a0 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1664,9 +1664,15 @@ switch_to_buffer_1 (buffer, norecord)
1664 1664
1665DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, "BSwitch to buffer: ", 1665DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, "BSwitch to buffer: ",
1666 doc: /* Select buffer BUFFER in the current window. 1666 doc: /* Select buffer BUFFER in the current window.
1667BUFFER may be a buffer or a buffer name. 1667If BUFFER does not identify an existing buffer,
1668then this function creates a buffer with that name.
1669
1670When called from Lisp, BUFFER may be a buffer, a string \(a buffer name),
1671or nil. If BUFFER is nil, then this function chooses a buffer
1672using `other-buffer'.
1668Optional second arg NORECORD non-nil means 1673Optional second arg NORECORD non-nil means
1669do not put this buffer at the front of the list of recently selected ones. 1674do not put this buffer at the front of the list of recently selected ones.
1675This function returns the buffer it switched to.
1670 1676
1671WARNING: This is NOT the way to work on another buffer temporarily 1677WARNING: This is NOT the way to work on another buffer temporarily
1672within a Lisp program! Use `set-buffer' instead. That avoids messing with 1678within a Lisp program! Use `set-buffer' instead. That avoids messing with
@@ -1689,11 +1695,15 @@ the window-buffer correspondences. */)
1689 1695
1690DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0, 1696DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0,
1691 doc: /* Select buffer BUFFER in some window, preferably a different one. 1697 doc: /* Select buffer BUFFER in some window, preferably a different one.
1692If BUFFER is nil, then some other buffer is chosen. 1698BUFFER may be a buffer, a string \(a buffer name), or nil.
1699If BUFFER is a string which is not the name of an existing buffer,
1700then this function creates a buffer with that name.
1701If BUFFER is nil, then it chooses some other buffer.
1693If `pop-up-windows' is non-nil, windows can be split to do this. 1702If `pop-up-windows' is non-nil, windows can be split to do this.
1694If optional second arg OTHER-WINDOW is non-nil, insist on finding another 1703If optional second arg OTHER-WINDOW is non-nil, insist on finding another
1695window even if BUFFER is already visible in the selected window, 1704window even if BUFFER is already visible in the selected window,
1696and ignore `same-window-regexps' and `same-window-buffer-names'. 1705and ignore `same-window-regexps' and `same-window-buffer-names'.
1706This function returns the buffer it switched to.
1697This uses the function `display-buffer' as a subroutine; see the documentation 1707This uses the function `display-buffer' as a subroutine; see the documentation
1698of `display-buffer' for additional customization information. 1708of `display-buffer' for additional customization information.
1699 1709
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;