# HG changeset patch # User Richard M. Stallman # Date 1099405064 0 # Node ID 27e0c6aa31c5ab123a034d3a0d8ad24243d416bb # Parent 1369082dc787e2505dabde4dcbaf7d3244925a36 (customize-group-other-window): Select the window that displays the custom buffer. (custom-buffer-create-other-window): Likewise. diff -r 1369082dc787 -r 27e0c6aa31c5 lisp/cus-edit.el --- a/lisp/cus-edit.el Tue Nov 02 14:16:30 2004 +0000 +++ b/lisp/cus-edit.el Tue Nov 02 14:17:44 2004 +0000 @@ -896,15 +896,14 @@ (let ((name (format "*Customize Group: %s*" (custom-unlispify-tag-name group)))) (if (get-buffer name) - (let ((window (selected-window)) + (let ( ;; Copied from `custom-buffer-create-other-window'. (pop-up-windows t) (special-display-buffer-names nil) (special-display-regexps nil) (same-window-buffer-names nil) (same-window-regexps nil)) - (pop-to-buffer name) - (select-window window)) + (pop-to-buffer name)) (custom-buffer-create-other-window (list (list group 'custom-group)) name @@ -1240,21 +1239,20 @@ ;;;###autoload (defun custom-buffer-create-other-window (options &optional name description) - "Create a buffer containing OPTIONS. + "Create a buffer containing OPTIONS, and display it in another window. +The result includes selecting that window. Optional NAME is the name of the buffer. OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where SYMBOL is a customization option, and WIDGET is a widget for editing that option." (unless name (setq name "*Customization*")) - (let ((window (selected-window)) - (pop-up-windows t) + (let ((pop-up-windows t) (special-display-buffer-names nil) (special-display-regexps nil) (same-window-buffer-names nil) (same-window-regexps nil)) (pop-to-buffer (custom-get-fresh-buffer name)) - (custom-buffer-create-internal options description) - (select-window window))) + (custom-buffer-create-internal options description))) (defcustom custom-reset-button-menu nil "If non-nil, only show a single reset button in customize buffers.