aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorMiles Bader2004-07-11 22:08:06 +0000
committerMiles Bader2004-07-11 22:08:06 +0000
commit89f3c0c9fda25756ee311a6d0467a97bac203eb5 (patch)
treebe9d2244f2ba1e7ecd4d680e92e5fdffca58ab03 /src/buffer.c
parent094194de121c8b93c7b183182cb0853ec54fe1aa (diff)
parentda38045d0a9949d46814683391e094a3612b6b41 (diff)
downloademacs-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/buffer.c')
-rw-r--r--src/buffer.c14
1 files changed, 12 insertions, 2 deletions
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
1666DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, "BSwitch to buffer: ", 1666DEFUN ("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.
1668BUFFER may be a buffer or a buffer name. 1668If BUFFER does not identify an existing buffer,
1669then this function creates a buffer with that name.
1670
1671When called from Lisp, BUFFER may be a buffer, a string \(a buffer name),
1672or nil. If BUFFER is nil, then this function chooses a buffer
1673using `other-buffer'.
1669Optional second arg NORECORD non-nil means 1674Optional second arg NORECORD non-nil means
1670do not put this buffer at the front of the list of recently selected ones. 1675do not put this buffer at the front of the list of recently selected ones.
1676This function returns the buffer it switched to.
1671 1677
1672WARNING: This is NOT the way to work on another buffer temporarily 1678WARNING: This is NOT the way to work on another buffer temporarily
1673within a Lisp program! Use `set-buffer' instead. That avoids messing with 1679within a Lisp program! Use `set-buffer' instead. That avoids messing with
@@ -1690,11 +1696,15 @@ the window-buffer correspondences. */)
1690 1696
1691DEFUN ("pop-to-buffer", Fpop_to_buffer, Spop_to_buffer, 1, 3, 0, 1697DEFUN ("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.
1693If BUFFER is nil, then some other buffer is chosen. 1699BUFFER may be a buffer, a string \(a buffer name), or nil.
1700If BUFFER is a string which is not the name of an existing buffer,
1701then this function creates a buffer with that name.
1702If BUFFER is nil, then it chooses some other buffer.
1694If `pop-up-windows' is non-nil, windows can be split to do this. 1703If `pop-up-windows' is non-nil, windows can be split to do this.
1695If optional second arg OTHER-WINDOW is non-nil, insist on finding another 1704If optional second arg OTHER-WINDOW is non-nil, insist on finding another
1696window even if BUFFER is already visible in the selected window, 1705window even if BUFFER is already visible in the selected window,
1697and ignore `same-window-regexps' and `same-window-buffer-names'. 1706and ignore `same-window-regexps' and `same-window-buffer-names'.
1707This function returns the buffer it switched to.
1698This uses the function `display-buffer' as a subroutine; see the documentation 1708This uses the function `display-buffer' as a subroutine; see the documentation
1699of `display-buffer' for additional customization information. 1709of `display-buffer' for additional customization information.
1700 1710