diff options
| author | Miles Bader | 2004-07-11 22:08:06 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-07-11 22:08:06 +0000 |
| commit | 89f3c0c9fda25756ee311a6d0467a97bac203eb5 (patch) | |
| tree | be9d2244f2ba1e7ecd4d680e92e5fdffca58ab03 /src | |
| parent | 094194de121c8b93c7b183182cb0853ec54fe1aa (diff) | |
| parent | da38045d0a9949d46814683391e094a3612b6b41 (diff) | |
| download | emacs-89f3c0c9fda25756ee311a6d0467a97bac203eb5.tar.gz emacs-89f3c0c9fda25756ee311a6d0467a97bac203eb5.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-23
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-442
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-444
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-445
Tweak permissions
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-446
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-450
Update from CVS
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 25 | ||||
| -rw-r--r-- | src/buffer.c | 14 | ||||
| -rw-r--r-- | src/editfns.c | 59 | ||||
| -rw-r--r-- | src/fns.c | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 12 | ||||
| -rw-r--r-- | src/window.c | 31 |
6 files changed, 98 insertions, 47 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 254069032ed..3d70d69cd69 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,7 +1,32 @@ | |||
| 1 | 2004-07-10 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | |||
| 3 | * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes. | ||
| 4 | |||
| 5 | * window.c (Fwindow_buffer, Fother_window, Fget_lru_window) | ||
| 6 | (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on) | ||
| 7 | (Freplace_buffer_in_windows, Fset_window_buffer) | ||
| 8 | (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes. | ||
| 9 | (syms_of_window): Expand docstring of `display-buffer-function'. | ||
| 10 | |||
| 11 | 2004-07-09 Luc Teirlinck <teirllm@auburn.edu> | ||
| 12 | |||
| 13 | * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time) | ||
| 14 | (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings | ||
| 15 | that time values of the type (HIGH . LOW) are considered obsolete. | ||
| 16 | |||
| 17 | 2004-07-06 Luc Teirlinck <teirllm@auburn.edu> | ||
| 18 | |||
| 19 | * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table' | ||
| 20 | docstring. | ||
| 21 | |||
| 22 | * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING. | ||
| 23 | |||
| 1 | 2004-07-06 John Paul Wallington <jpw@gnu.org> | 24 | 2004-07-06 John Paul Wallington <jpw@gnu.org> |
| 2 | 25 | ||
| 3 | * eval.c (Fdefmacro): Signal an error if NAME is not a symbol. | 26 | * eval.c (Fdefmacro): Signal an error if NAME is not a symbol. |
| 4 | 27 | ||
| 28 | * fns.c (Fclear_string): Signal an error if STRING is not a string. | ||
| 29 | |||
| 5 | 2004-07-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | 30 | 2004-07-05 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> |
| 6 | 31 | ||
| 7 | * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList | 32 | * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList |
diff --git a/src/buffer.c b/src/buffer.c index bd4e061b05f..8bc20776957 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1665,9 +1665,15 @@ switch_to_buffer_1 (buffer, norecord) | |||
| 1665 | 1665 | ||
| 1666 | DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, "BSwitch to buffer: ", | 1666 | DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, "BSwitch to buffer: ", |
| 1667 | doc: /* Select buffer BUFFER in the current window. | 1667 | doc: /* Select buffer BUFFER in the current window. |
| 1668 | BUFFER may be a buffer or a buffer name. | 1668 | If BUFFER does not identify an existing buffer, |
| 1669 | then this function creates a buffer with that name. | ||
| 1670 | |||
| 1671 | When called from Lisp, BUFFER may be a buffer, a string \(a buffer name), | ||
| 1672 | or nil. If BUFFER is nil, then this function chooses a buffer | ||
| 1673 | using `other-buffer'. | ||
| 1669 | Optional second arg NORECORD non-nil means | 1674 | Optional second arg NORECORD non-nil means |
| 1670 | do not put this buffer at the front of the list of recently selected ones. | 1675 | do not put this buffer at the front of the list of recently selected ones. |
| 1676 | This function returns the buffer it switched to. | ||
| 1671 | 1677 | ||
| 1672 | WARNING: This is NOT the way to work on another buffer temporarily | 1678 | WARNING: This is NOT the way to work on another buffer temporarily |
| 1673 | within a Lisp program! Use `set-buffer' instead. That avoids messing with | 1679 | within a Lisp program! Use `set-buffer' instead. That avoids messing with |
| @@ -1690,11 +1696,15 @@ the window-buffer correspondences. */) | |||
| 1690 | 1696 | ||
| 1691 | DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0, | 1697 | DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0, |
| 1692 | doc: /* Select buffer BUFFER in some window, preferably a different one. | 1698 | doc: /* Select buffer BUFFER in some window, preferably a different one. |
| 1693 | If BUFFER is nil, then some other buffer is chosen. | 1699 | BUFFER may be a buffer, a string \(a buffer name), or nil. |
| 1700 | If BUFFER is a string which is not the name of an existing buffer, | ||
| 1701 | then this function creates a buffer with that name. | ||
| 1702 | If BUFFER is nil, then it chooses some other buffer. | ||
| 1694 | If `pop-up-windows' is non-nil, windows can be split to do this. | 1703 | If `pop-up-windows' is non-nil, windows can be split to do this. |
| 1695 | If optional second arg OTHER-WINDOW is non-nil, insist on finding another | 1704 | If optional second arg OTHER-WINDOW is non-nil, insist on finding another |
| 1696 | window even if BUFFER is already visible in the selected window, | 1705 | window even if BUFFER is already visible in the selected window, |
| 1697 | and ignore `same-window-regexps' and `same-window-buffer-names'. | 1706 | and ignore `same-window-regexps' and `same-window-buffer-names'. |
| 1707 | This function returns the buffer it switched to. | ||
| 1698 | This uses the function `display-buffer' as a subroutine; see the documentation | 1708 | This uses the function `display-buffer' as a subroutine; see the documentation |
| 1699 | of `display-buffer' for additional customization information. | 1709 | of `display-buffer' for additional customization information. |
| 1700 | 1710 | ||
diff --git a/src/editfns.c b/src/editfns.c index 9928beff678..2782a966bf0 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1426,10 +1426,10 @@ lisp_time_argument (specified_time, result, usec) | |||
| 1426 | DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0, | 1426 | DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0, |
| 1427 | doc: /* Return the current time, as a float number of seconds since the epoch. | 1427 | doc: /* Return the current time, as a float number of seconds since the epoch. |
| 1428 | If SPECIFIED-TIME is given, it is the time to convert to float | 1428 | If SPECIFIED-TIME is given, it is the time to convert to float |
| 1429 | instead of the current time. The argument should have the forms: | 1429 | instead of the current time. The argument should have the form |
| 1430 | (HIGH . LOW) or (HIGH LOW USEC) or (HIGH LOW . USEC). | 1430 | (HIGH LOW . IGNORED). Thus, you can use times obtained from |
| 1431 | Thus, you can use times obtained from `current-time' | 1431 | `current-time' and from `file-attributes'. SPECIFIED-TIME can also |
| 1432 | and from `file-attributes'. | 1432 | have the form (HIGH . LOW), but this is considered obsolete. |
| 1433 | 1433 | ||
| 1434 | WARNING: Since the result is floating point, it may not be exact. | 1434 | WARNING: Since the result is floating point, it may not be exact. |
| 1435 | Do not use this function if precise time stamps are required. */) | 1435 | Do not use this function if precise time stamps are required. */) |
| @@ -1501,8 +1501,9 @@ emacs_memftimeu (s, maxsize, format, format_len, tp, ut) | |||
| 1501 | 1501 | ||
| 1502 | DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0, | 1502 | DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0, |
| 1503 | doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted. | 1503 | doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted. |
| 1504 | TIME is specified as (HIGH LOW . IGNORED) or (HIGH . LOW), as returned by | 1504 | TIME is specified as (HIGH LOW . IGNORED), as returned by |
| 1505 | `current-time' or `file-attributes'. | 1505 | `current-time' or `file-attributes'. The obsolete form (HIGH . LOW) |
| 1506 | is also still accepted. | ||
| 1506 | The third, optional, argument UNIVERSAL, if non-nil, means describe TIME | 1507 | The third, optional, argument UNIVERSAL, if non-nil, means describe TIME |
| 1507 | as Universal Time; nil means describe TIME in the local time zone. | 1508 | as Universal Time; nil means describe TIME in the local time zone. |
| 1508 | The value is a copy of FORMAT-STRING, but with certain constructs replaced | 1509 | The value is a copy of FORMAT-STRING, but with certain constructs replaced |
| @@ -1598,17 +1599,19 @@ For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */) | |||
| 1598 | 1599 | ||
| 1599 | DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0, | 1600 | DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0, |
| 1600 | doc: /* Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE). | 1601 | doc: /* Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE). |
| 1601 | The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED) | 1602 | The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED), |
| 1602 | or (HIGH . LOW), as from `current-time' and `file-attributes', or `nil' | 1603 | as from `current-time' and `file-attributes', or `nil' to use the |
| 1603 | to use the current time. The list has the following nine members: | 1604 | current time. The obsolete form (HIGH . LOW) is also still accepted. |
| 1604 | SEC is an integer between 0 and 60; SEC is 60 for a leap second, which | 1605 | The list has the following nine members: SEC is an integer between 0 |
| 1605 | only some operating systems support. MINUTE is an integer between 0 and 59. | 1606 | and 60; SEC is 60 for a leap second, which only some operating systems |
| 1606 | HOUR is an integer between 0 and 23. DAY is an integer between 1 and 31. | 1607 | support. MINUTE is an integer between 0 and 59. HOUR is an integer |
| 1607 | MONTH is an integer between 1 and 12. YEAR is an integer indicating the | 1608 | between 0 and 23. DAY is an integer between 1 and 31. MONTH is an |
| 1608 | four-digit year. DOW is the day of week, an integer between 0 and 6, where | 1609 | integer between 1 and 12. YEAR is an integer indicating the |
| 1609 | 0 is Sunday. DST is t if daylight savings time is effect, otherwise nil. | 1610 | four-digit year. DOW is the day of week, an integer between 0 and 6, |
| 1610 | ZONE is an integer indicating the number of seconds east of Greenwich. | 1611 | where 0 is Sunday. DST is t if daylight savings time is effect, |
| 1611 | (Note that Common Lisp has different meanings for DOW and ZONE.) */) | 1612 | otherwise nil. ZONE is an integer indicating the number of seconds |
| 1613 | east of Greenwich. (Note that Common Lisp has different meanings for | ||
| 1614 | DOW and ZONE.) */) | ||
| 1612 | (specified_time) | 1615 | (specified_time) |
| 1613 | Lisp_Object specified_time; | 1616 | Lisp_Object specified_time; |
| 1614 | { | 1617 | { |
| @@ -1740,13 +1743,11 @@ The format is `Sun Sep 16 01:03:52 1973'. | |||
| 1740 | However, see also the functions `decode-time' and `format-time-string' | 1743 | However, see also the functions `decode-time' and `format-time-string' |
| 1741 | which provide a much more powerful and general facility. | 1744 | which provide a much more powerful and general facility. |
| 1742 | 1745 | ||
| 1743 | If SPECIFIED-TIME is given, it is a time to format instead | 1746 | If SPECIFIED-TIME is given, it is a time to format instead of the |
| 1744 | of the current time. The argument should have the form: | 1747 | current time. The argument should have the form (HIGH LOW . IGNORED). |
| 1745 | (HIGH . LOW) | 1748 | Thus, you can use times obtained from `current-time' and from |
| 1746 | or the form: | 1749 | `file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW), |
| 1747 | (HIGH LOW . IGNORED). | 1750 | but this is considered obsolete. */) |
| 1748 | Thus, you can use times obtained from `current-time' | ||
| 1749 | and from `file-attributes'. */) | ||
| 1750 | (specified_time) | 1751 | (specified_time) |
| 1751 | Lisp_Object specified_time; | 1752 | Lisp_Object specified_time; |
| 1752 | { | 1753 | { |
| @@ -1797,12 +1798,10 @@ OFFSET is an integer number of seconds ahead of UTC (east of Greenwich). | |||
| 1797 | A negative value means west of Greenwich. | 1798 | A negative value means west of Greenwich. |
| 1798 | NAME is a string giving the name of the time zone. | 1799 | NAME is a string giving the name of the time zone. |
| 1799 | If SPECIFIED-TIME is given, the time zone offset is determined from it | 1800 | If SPECIFIED-TIME is given, the time zone offset is determined from it |
| 1800 | instead of using the current time. The argument should have the form: | 1801 | instead of using the current time. The argument should have the form |
| 1801 | (HIGH . LOW) | 1802 | (HIGH LOW . IGNORED). Thus, you can use times obtained from |
| 1802 | or the form: | 1803 | `current-time' and from `file-attributes'. SPECIFIED-TIME can also |
| 1803 | (HIGH LOW . IGNORED). | 1804 | have the form (HIGH . LOW), but this is considered obsolete. |
| 1804 | Thus, you can use times obtained from `current-time' | ||
| 1805 | and from `file-attributes'. | ||
| 1806 | 1805 | ||
| 1807 | Some operating systems cannot provide all this information to Emacs; | 1806 | Some operating systems cannot provide all this information to Emacs; |
| 1808 | in this case, `current-time-zone' returns a list containing nil for | 1807 | in this case, `current-time-zone' returns a list containing nil for |
| @@ -2298,7 +2298,9 @@ This makes STRING unibyte and may change its length. */) | |||
| 2298 | (string) | 2298 | (string) |
| 2299 | Lisp_Object string; | 2299 | Lisp_Object string; |
| 2300 | { | 2300 | { |
| 2301 | int len = SBYTES (string); | 2301 | int len; |
| 2302 | CHECK_STRING (string); | ||
| 2303 | len = SBYTES (string); | ||
| 2302 | bzero (SDATA (string), len); | 2304 | bzero (SDATA (string), len); |
| 2303 | STRING_SET_CHARS (string, len); | 2305 | STRING_SET_CHARS (string, len); |
| 2304 | STRING_SET_UNIBYTE (string); | 2306 | STRING_SET_UNIBYTE (string); |
diff --git a/src/keyboard.c b/src/keyboard.c index 469b15fb683..382f99058d4 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -11149,11 +11149,13 @@ Useful to set before you dump a modified Emacs. */); | |||
| 11149 | 11149 | ||
| 11150 | DEFVAR_LISP ("keyboard-translate-table", &Vkeyboard_translate_table, | 11150 | DEFVAR_LISP ("keyboard-translate-table", &Vkeyboard_translate_table, |
| 11151 | doc: /* Translate table for keyboard input, or nil. | 11151 | doc: /* Translate table for keyboard input, or nil. |
| 11152 | Each character is looked up in this string and the contents used instead. | 11152 | If non-nil, the value should be a char-table. Each character read |
| 11153 | The value may be a string, a vector, or a char-table. | 11153 | from the keyboard is looked up in this char-table. If the value found |
| 11154 | If it is a string or vector of length N, | 11154 | there is non-nil, then it is used instead of the actual input character. |
| 11155 | character codes N and up are untranslated. | 11155 | |
| 11156 | In a vector or a char-table, an element which is nil means "no translation". | 11156 | The value can also be a string or vector, but this is considered obsolete. |
| 11157 | If it is a string or vector of length N, character codes N and up are left | ||
| 11158 | untranslated. In a vector, an element which is nil means "no translation". | ||
| 11157 | 11159 | ||
| 11158 | This is applied to the characters supplied to input methods, not their | 11160 | This is applied to the characters supplied to input methods, not their |
| 11159 | output. See also `translation-table-for-input'. */); | 11161 | output. See also `translation-table-for-input'. */); |
diff --git a/src/window.c b/src/window.c index d3203c99e90..62ce399e95c 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; |