aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorChong Yidong2011-09-11 14:30:07 -0400
committerChong Yidong2011-09-11 14:30:07 -0400
commit37ac18a341f604b6ebf27af8effc7ef73e2a28ea (patch)
tree2d66b3afb31deff84e67950478a56a81101f59fd /lisp/cus-edit.el
parentd562d7a44cf4abe2ea23ee6fc2982a1e41bc27fb (diff)
downloademacs-37ac18a341f604b6ebf27af8effc7ef73e2a28ea.tar.gz
emacs-37ac18a341f604b6ebf27af8effc7ef73e2a28ea.zip
Change modes that used same-window-* vars to use switch-to-buffer.
* cmuscheme.el (run-scheme, switch-to-scheme): * ielm.el (ielm): * shell.el (shell): * net/rlogin.el (rlogin): * net/telnet.el (telnet, rsh): * progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer. * cus-edit.el (customize-group, custom-buffer-create) (customize-browse, custom-buffer-create-other-window): Use switch-to-buffer or switch-to-buffer-other-window. * info.el (info, Info-find-node, Info-revert-find-node, Info-next) (Info-prev, Info-up, Info-speedbar-goto-node) (info-display-manual): Use switch-to-buffer. (Info-speedbar-goto-node): Use switch-to-buffer-other-frame. * lisp/gnus/message.el (message-pop-to-buffer): Default to switch-to-buffer. (message-mail-other-window, message-mail-other-frame) (message-news-other-window, message-news-other-frame): Use switch-to-buffer-other-frame and switch-to-buffer-other-window instead of setting buffer display varibles. * mail/sendmail.el (mail): Use switch-to-buffer. (mail-recover): Use switch-to-buffer-other-window. * progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows): Use switch-to-buffer.
Diffstat (limited to 'lisp/cus-edit.el')
-rw-r--r--lisp/cus-edit.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 4411fb42508..620ecdba40c 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1112,7 +1112,7 @@ If OTHER-WINDOW is non-nil, display in another window."
1112 (let ((name (format "*Customize Group: %s*" 1112 (let ((name (format "*Customize Group: %s*"
1113 (custom-unlispify-tag-name group)))) 1113 (custom-unlispify-tag-name group))))
1114 (if (get-buffer name) 1114 (if (get-buffer name)
1115 (pop-to-buffer name other-window) 1115 (switch-to-buffer name other-window)
1116 (funcall (if other-window 1116 (funcall (if other-window
1117 'custom-buffer-create-other-window 1117 'custom-buffer-create-other-window
1118 'custom-buffer-create) 1118 'custom-buffer-create)
@@ -1533,7 +1533,7 @@ Optional NAME is the name of the buffer.
1533OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where 1533OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where
1534SYMBOL is a customization option, and WIDGET is a widget for editing 1534SYMBOL is a customization option, and WIDGET is a widget for editing
1535that option." 1535that option."
1536 (pop-to-buffer (custom-get-fresh-buffer (or name "*Customization*"))) 1536 (switch-to-buffer (custom-get-fresh-buffer (or name "*Customization*")))
1537 (custom-buffer-create-internal options description)) 1537 (custom-buffer-create-internal options description))
1538 1538
1539;;;###autoload 1539;;;###autoload
@@ -1545,7 +1545,7 @@ OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where
1545SYMBOL is a customization option, and WIDGET is a widget for editing 1545SYMBOL is a customization option, and WIDGET is a widget for editing
1546that option." 1546that option."
1547 (unless name (setq name "*Customization*")) 1547 (unless name (setq name "*Customization*"))
1548 (pop-to-buffer (custom-get-fresh-buffer name) t) 1548 (switch-to-buffer-other-window (custom-get-fresh-buffer name))
1549 (custom-buffer-create-internal options description)) 1549 (custom-buffer-create-internal options description))
1550 1550
1551(defcustom custom-reset-button-menu nil 1551(defcustom custom-reset-button-menu nil
@@ -1721,7 +1721,7 @@ Otherwise use brackets."
1721 (unless group 1721 (unless group
1722 (setq group 'emacs)) 1722 (setq group 'emacs))
1723 (let ((name "*Customize Browser*")) 1723 (let ((name "*Customize Browser*"))
1724 (pop-to-buffer (custom-get-fresh-buffer name))) 1724 (switch-to-buffer (custom-get-fresh-buffer name)))
1725 (Custom-mode) 1725 (Custom-mode)
1726 (widget-insert (format "\ 1726 (widget-insert (format "\
1727%s buttons; type RET or click mouse-1 1727%s buttons; type RET or click mouse-1