aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2008-11-22 11:35:45 +0000
committerMartin Rudalics2008-11-22 11:35:45 +0000
commitee50ff07eb4e1d1e40268e13c0925f6814c0c0bc (patch)
treef85d3b1c7e9b0501c0d3e5a2f1b85393569eda59
parentc8548a00159f164f3981ac8a7b1afc13d09086d5 (diff)
downloademacs-ee50ff07eb4e1d1e40268e13c0925f6814c0c0bc.tar.gz
emacs-ee50ff07eb4e1d1e40268e13c0925f6814c0c0bc.zip
(Fswitch_to_buffer): Reword and mention new option
confirm-nonexistent-file-or-buffer in doc-string.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c28
2 files changed, 21 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cb1e910f0cd..9d1be5d6ab5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-11-22 Martin Rudalics <rudalics@gmx.at>
2
3 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4 confirm-nonexistent-file-or-buffer in doc-string.
5
12008-11-21 Stefan Monnier <monnier@iro.umontreal.ca> 62008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation. 8 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
diff --git a/src/buffer.c b/src/buffer.c
index 4e87498ea51..8041e3abce5 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1762,22 +1762,26 @@ switch_to_buffer_1 (buffer_or_name, norecord)
1762 1762
1763DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2, 1763DEFUN ("switch-to-buffer", Fswitch_to_buffer, Sswitch_to_buffer, 1, 2,
1764 "(list (read-buffer-to-switch \"Switch to buffer: \"))", 1764 "(list (read-buffer-to-switch \"Switch to buffer: \"))",
1765 doc: /* Make BUFFER-OR-NAME current and display it in the selected window. 1765 doc: /* Make BUFFER-OR-NAME current and display it in selected window.
1766BUFFER-OR-NAME may be a buffer, a string, or nil. If BUFFER-OR-NAME is 1766BUFFER-OR-NAME may be a buffer, a string \(a buffer name), or
1767nil, then this function chooses a buffer using `other-buffer'. If 1767nil. Return the buffer switched to.
1768BUFFER-OR-NAME is a string and does not identify an existing buffer,
1769then this function creates a buffer with that name.
1770 1768
1771Optional second arg NORECORD non-nil means do not put this buffer at the 1769If BUFFER-OR-NAME is a string and does not identify an existing
1772front of the list of recently selected ones. This function returns the 1770buffer, create a new buffer with that name. Interactively, if
1773buffer it switched to as a Lisp object. 1771`confirm-nonexistent-file-or-buffer' is non-nil, request
1772confirmation before creating a new buffer. If BUFFER-OR-NAME is
1773nil, switch to buffer returned by `other-buffer'.
1774 1774
1775If the selected window is the minibuffer window or dedicated to its 1775Optional second arg NORECORD non-nil means do not put this buffer
1776buffer, use `pop-to-buffer' for displaying the buffer. 1776at the front of the list of recently selected ones. This
1777function returns the buffer it switched to as a Lisp object.
1778
1779If the selected window is the minibuffer window or dedicated to
1780its buffer, use `pop-to-buffer' for displaying the buffer.
1777 1781
1778WARNING: This is NOT the way to work on another buffer temporarily 1782WARNING: This is NOT the way to work on another buffer temporarily
1779within a Lisp program! Use `set-buffer' instead. That avoids messing 1783within a Lisp program! Use `set-buffer' instead. That avoids
1780with the window-buffer correspondences. */) 1784messing with the window-buffer correspondences. */)
1781 (buffer_or_name, norecord) 1785 (buffer_or_name, norecord)
1782 Lisp_Object buffer_or_name, norecord; 1786 Lisp_Object buffer_or_name, norecord;
1783{ 1787{