aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChong Yidong2011-07-13 18:00:48 -0400
committerChong Yidong2011-07-13 18:00:48 -0400
commitbee0fcef3d9c332b9907369b4e6f6f61d6fbdf35 (patch)
treef99c4d0a39a961e9f281c1825c43810d89157797 /etc
parent0f04b32ce1d0f6f6e94b77931122acf3da3b3680 (diff)
downloademacs-bee0fcef3d9c332b9907369b4e6f6f61d6fbdf35.tar.gz
emacs-bee0fcef3d9c332b9907369b4e6f6f61d6fbdf35.zip
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
986 986
987* Lisp changes in Emacs 24.1 987* Lisp changes in Emacs 24.1
988 988
989** Window changes
990
991*** `switch-to-buffer' has a new optional argument FORCE-SAME-WINDOW,
992which if non-nil requires the buffer to be displayed in the currently
993selected window, signaling an error otherwise. If nil, another window
994can be used, e.g. if the selected one is strongly dedicated.
995
996*** FIXME: buffer-display-alist changes
997
989** Completion 998** Completion
990*** New variable completion-extra-properties used to specify extra properties 999*** New variable completion-extra-properties used to specify extra properties
991of the current completion: 1000of the current completion: