aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/window.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/window.el')
-rw-r--r--lisp/window.el7
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
5875WARNING: This is NOT the way to work on another buffer temporarily
5876within a Lisp program! Use `set-buffer' instead. That avoids
5877messing with the window-buffer correspondences.
5878
5874If the selected window cannot display the specified 5879If the selected window cannot display the specified
5875buffer (e.g. if it is a minibuffer window or strongly dedicated 5880buffer (e.g. if it is a minibuffer window or strongly dedicated
5876to another buffer), call `pop-to-buffer' to select the buffer in 5881to another buffer), call `pop-to-buffer' to select the buffer in