summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-07-13 18:00:48 -0400
committerChong Yidong <cyd@stupidchicken.com>2011-07-13 18:00:48 -0400
commitbee0fcef3d9c332b9907369b4e6f6f61d6fbdf35 (patch)
treef99c4d0a39a961e9f281c1825c43810d89157797 /etc
parent0f04b32ce1d0f6f6e94b77931122acf3da3b3680 (diff)
downloademacs-bee0fcef3d9c332b9907369b4e6f6f61d6fbdf35.tar.gz
Add FORCE-SAME-WINDOW argument to switch-to-buffer.
* lisp/window.el (switch-to-buffer): New arg FORCE-SAME-WINDOW. Use pop-to-buffer buffer-or-name if it is nil. * lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions): Remove switch-to-buffer.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 8a37735b41f..3f23c23fe3a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -986,6 +986,15 @@ sc.el, x-menu.el, rnews.el, rnewspost.el
* Lisp changes in Emacs 24.1
+** Window changes
+
+*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
+which if non-nil requires the buffer to be displayed in the currently
+selected window, signaling an error otherwise. If nil, another window
+can be used, e.g. if the selected one is strongly dedicated.
+
+*** FIXME: buffer-display-alist changes
+
** Completion
*** New variable completion-extra-properties used to specify extra properties
of the current completion: