aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong2012-09-07 21:53:21 +0800
committerChong Yidong2012-09-07 21:53:21 +0800
commitcee2e90d475f6d9dbdb7e92a127b65faa342665c (patch)
tree610d89ce5fa1893f91fd0d991b30201e78f9a4bb /lisp
parent4d64875a837a2d338bf776872f5f76522b707099 (diff)
downloademacs-cee2e90d475f6d9dbdb7e92a127b65faa342665c.tar.gz
emacs-cee2e90d475f6d9dbdb7e92a127b65faa342665c.zip
Minor doc fix for switch-to-buffer.
* doc/lispref/windows.texi (Display Action Functions) (Choosing Window Options): Remove obsolete variable display-buffer-reuse-frames. (Switching Buffers): Minor doc tweak for switch-to-buffer. * lisp/window.el (switch-to-buffer): Doc fix. Fixes: debbugs:12181
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/window.el34
2 files changed, 20 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index db3a3f5d044..95a6c1e7174 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12012-09-07 Chong Yidong <cyd@gnu.org> 12012-09-07 Chong Yidong <cyd@gnu.org>
2 2
3 * window.el (switch-to-buffer): Doc fix (Bug#12181).
4
3 * files.el (after-find-file): Don't fail on a read-only buffer if 5 * files.el (after-find-file): Don't fail on a read-only buffer if
4 require-final-newline is `visit' or `visit-save' (Bug#11156). 6 require-final-newline is `visit' or `visit-save' (Bug#11156).
5 7
diff --git a/lisp/window.el b/lisp/window.el
index 66b86f45e77..0e03268029c 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5642,26 +5642,28 @@ buffer with the name BUFFER-OR-NAME and return that buffer."
5642 5642
5643(defun switch-to-buffer (buffer-or-name &optional norecord force-same-window) 5643(defun switch-to-buffer (buffer-or-name &optional norecord force-same-window)
5644 "Switch to buffer BUFFER-OR-NAME in the selected window. 5644 "Switch to buffer BUFFER-OR-NAME in the selected window.
5645If called interactively, prompt for the buffer name using the 5645If the selected window cannot display the specified
5646buffer (e.g. if it is a minibuffer window or strongly dedicated
5647to another buffer), call `pop-to-buffer' to select the buffer in
5648another window.
5649
5650If called interactively, read the buffer name using the
5646minibuffer. The variable `confirm-nonexistent-file-or-buffer' 5651minibuffer. The variable `confirm-nonexistent-file-or-buffer'
5647determines whether to request confirmation before creating a new 5652determines whether to request confirmation before creating a new
5648buffer. 5653buffer.
5649 5654
5650BUFFER-OR-NAME may be a buffer, a string (a buffer name), or 5655BUFFER-OR-NAME may be a buffer, a string (a buffer name), or nil.
5651nil. If BUFFER-OR-NAME is a string that does not identify an 5656If BUFFER-OR-NAME is a string that does not identify an existing
5652existing buffer, create a buffer with that name. If 5657buffer, create a buffer with that name. If BUFFER-OR-NAME is
5653BUFFER-OR-NAME is nil, switch to the buffer returned by 5658nil, switch to the buffer returned by `other-buffer'.
5654`other-buffer'. 5659
5655 5660If optional argument NORECORD is non-nil, do not put the buffer
5656Optional argument NORECORD non-nil means do not put the buffer 5661at the front of the buffer list, and do not make the window
5657specified by BUFFER-OR-NAME at the front of the buffer list and 5662displaying it the most recently selected one.
5658do not make the window displaying it the most recently selected 5663
5659one. 5664If optional argument FORCE-SAME-WINDOW is non-nil, the buffer
5660 5665must be displayed in the selected window; if that is impossible,
5661If FORCE-SAME-WINDOW is non-nil, BUFFER-OR-NAME must be displayed 5666signal an error rather than calling `pop-to-buffer'.
5662in the selected window; signal an error if that is
5663impossible (e.g. if the selected window is minibuffer-only). If
5664nil, BUFFER-OR-NAME may be displayed in another window.
5665 5667
5666Return the buffer switched to." 5668Return the buffer switched to."
5667 (interactive 5669 (interactive