diff options
| author | Kenichi Handa | 2012-11-23 23:36:24 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-11-23 23:36:24 +0900 |
| commit | 2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9 (patch) | |
| tree | 3711b97807201b7eeaa066003b1c3a4ce929e5bb /lisp/window.el | |
| parent | e1d276cbf9e18f13101328f56bed1a1c0a66e63a (diff) | |
| parent | e7d0e5ee247a155a268ffbf80bedbe25e15b5032 (diff) | |
| download | emacs-2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9.tar.gz emacs-2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9.zip | |
Diffstat (limited to 'lisp/window.el')
| -rw-r--r-- | lisp/window.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/window.el b/lisp/window.el index d378ea5ff14..52909fa9e5f 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -5870,7 +5870,12 @@ the selected window or never appeared in it before, or if | |||
| 5870 | :version "24.3") | 5870 | :version "24.3") |
| 5871 | 5871 | ||
| 5872 | (defun switch-to-buffer (buffer-or-name &optional norecord force-same-window) | 5872 | (defun switch-to-buffer (buffer-or-name &optional norecord force-same-window) |
| 5873 | "Switch to buffer BUFFER-OR-NAME in the selected window. | 5873 | "Display buffer BUFFER-OR-NAME in the selected window. |
| 5874 | |||
| 5875 | WARNING: This is NOT the way to work on another buffer temporarily | ||
| 5876 | within a Lisp program! Use `set-buffer' instead. That avoids | ||
| 5877 | messing with the window-buffer correspondences. | ||
| 5878 | |||
| 5874 | If the selected window cannot display the specified | 5879 | If the selected window cannot display the specified |
| 5875 | buffer (e.g. if it is a minibuffer window or strongly dedicated | 5880 | buffer (e.g. if it is a minibuffer window or strongly dedicated |
| 5876 | to another buffer), call `pop-to-buffer' to select the buffer in | 5881 | to another buffer), call `pop-to-buffer' to select the buffer in |