# HG changeset patch # User Karl Heuer # Date 896770604 0 # Node ID 7ad747c6c5a93a784fb75ae8f01fc9c3346739f6 # Parent fcc3db2d97781bc0b58c8dec61c0aeffeed84bcb (customize-group, customize-group-other-window) (custom-buffer-create, custom-buffer-create-other-window) (customize-browse): Use pop-to-buffer. (same-window-regexps): Add autoload to add regexp to match custom bfrs. diff -r fcc3db2d9778 -r 7ad747c6c5a9 lisp/cus-edit.el --- a/lisp/cus-edit.el Tue Jun 02 06:55:39 1998 +0000 +++ b/lisp/cus-edit.el Tue Jun 02 06:56:44 1998 +0000 @@ -611,6 +611,8 @@ (const :tag "none" nil)) :group 'custom-menu) +;;;###autoload (add-hook 'same-window-regexps "\\`\\*Customiz.*\\*\\'") + (defun custom-sort-items (items sort-alphabetically order-groups) "Return a sorted copy of ITEMS. ITEMS should be a `custom-group' property. @@ -825,7 +827,7 @@ (let ((name (format "*Customize Group: %s*" (custom-unlispify-tag-name group)))) (if (get-buffer name) - (switch-to-buffer name) + (pop-to-buffer name) (custom-buffer-create (list (list group 'custom-group)) name (concat " for group " @@ -851,7 +853,7 @@ (custom-unlispify-tag-name group)))) (if (get-buffer name) (let ((window (selected-window))) - (switch-to-buffer-other-window name) + (pop-to-buffer-other-window name) (select-window window)) (custom-buffer-create-other-window (list (list group 'custom-group)) @@ -1072,7 +1074,7 @@ that option." (unless name (setq name "*Customization*")) (kill-buffer (get-buffer-create name)) - (switch-to-buffer (get-buffer-create name)) + (pop-to-buffer (get-buffer-create name)) (custom-buffer-create-internal options description)) ;;;###autoload @@ -1084,8 +1086,13 @@ that option." (unless name (setq name "*Customization*")) (kill-buffer (get-buffer-create name)) - (let ((window (selected-window))) - (switch-to-buffer-other-window (get-buffer-create name)) + (let ((window (selected-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 (get-buffer-create name)) (custom-buffer-create-internal options description) (select-window window))) @@ -1207,7 +1214,7 @@ (setq group 'emacs)) (let ((name "*Customize Browser*")) (kill-buffer (get-buffer-create name)) - (switch-to-buffer (get-buffer-create name))) + (pop-to-buffer (get-buffer-create name))) (custom-mode) (widget-insert "\ Square brackets show active fields; type RET or click mouse-1