diff options
| author | Chong Yidong | 2012-09-07 21:53:21 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-07 21:53:21 +0800 |
| commit | cee2e90d475f6d9dbdb7e92a127b65faa342665c (patch) | |
| tree | 610d89ce5fa1893f91fd0d991b30201e78f9a4bb /lisp/window.el | |
| parent | 4d64875a837a2d338bf776872f5f76522b707099 (diff) | |
| download | emacs-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/window.el')
| -rw-r--r-- | lisp/window.el | 34 |
1 files changed, 18 insertions, 16 deletions
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. |
| 5645 | If called interactively, prompt for the buffer name using the | 5645 | If the selected window cannot display the specified |
| 5646 | buffer (e.g. if it is a minibuffer window or strongly dedicated | ||
| 5647 | to another buffer), call `pop-to-buffer' to select the buffer in | ||
| 5648 | another window. | ||
| 5649 | |||
| 5650 | If called interactively, read the buffer name using the | ||
| 5646 | minibuffer. The variable `confirm-nonexistent-file-or-buffer' | 5651 | minibuffer. The variable `confirm-nonexistent-file-or-buffer' |
| 5647 | determines whether to request confirmation before creating a new | 5652 | determines whether to request confirmation before creating a new |
| 5648 | buffer. | 5653 | buffer. |
| 5649 | 5654 | ||
| 5650 | BUFFER-OR-NAME may be a buffer, a string (a buffer name), or | 5655 | BUFFER-OR-NAME may be a buffer, a string (a buffer name), or nil. |
| 5651 | nil. If BUFFER-OR-NAME is a string that does not identify an | 5656 | If BUFFER-OR-NAME is a string that does not identify an existing |
| 5652 | existing buffer, create a buffer with that name. If | 5657 | buffer, create a buffer with that name. If BUFFER-OR-NAME is |
| 5653 | BUFFER-OR-NAME is nil, switch to the buffer returned by | 5658 | nil, switch to the buffer returned by `other-buffer'. |
| 5654 | `other-buffer'. | 5659 | |
| 5655 | 5660 | If optional argument NORECORD is non-nil, do not put the buffer | |
| 5656 | Optional argument NORECORD non-nil means do not put the buffer | 5661 | at the front of the buffer list, and do not make the window |
| 5657 | specified by BUFFER-OR-NAME at the front of the buffer list and | 5662 | displaying it the most recently selected one. |
| 5658 | do not make the window displaying it the most recently selected | 5663 | |
| 5659 | one. | 5664 | If optional argument FORCE-SAME-WINDOW is non-nil, the buffer |
| 5660 | 5665 | must be displayed in the selected window; if that is impossible, | |
| 5661 | If FORCE-SAME-WINDOW is non-nil, BUFFER-OR-NAME must be displayed | 5666 | signal an error rather than calling `pop-to-buffer'. |
| 5662 | in the selected window; signal an error if that is | ||
| 5663 | impossible (e.g. if the selected window is minibuffer-only). If | ||
| 5664 | nil, BUFFER-OR-NAME may be displayed in another window. | ||
| 5665 | 5667 | ||
| 5666 | Return the buffer switched to." | 5668 | Return the buffer switched to." |
| 5667 | (interactive | 5669 | (interactive |