diff options
| author | Stefan Monnier | 2012-11-18 22:16:03 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2012-11-18 22:16:03 -0500 |
| commit | d1c0cddf73e3edf4b1a7bbaa9e24caa817bd10e1 (patch) | |
| tree | e08f71956dc4a84c41b13cc7710f0db427678718 | |
| parent | 535efd4a430b6595a30efaa2919e565ad21209b9 (diff) | |
| download | emacs-d1c0cddf73e3edf4b1a7bbaa9e24caa817bd10e1.tar.gz emacs-d1c0cddf73e3edf4b1a7bbaa9e24caa817bd10e1.zip | |
* lisp/window.el (switch-to-buffer): Re-add the warning that was lost in the
code rewrite.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/window.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a6fdf7ebc4b..85e762497e4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-11-19 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * window.el (switch-to-buffer): Re-add the warning that was lost in the | ||
| 4 | code rewrite. | ||
| 5 | |||
| 1 | 2012-11-18 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2012-11-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | More minor time fixes. | 8 | More minor time fixes. |
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 |