Commit fd88fe73 authored by Richard M. Stallman's avatar Richard M. Stallman

(customize-group-other-window): Handle groups not

yet loaded.  If buffer exists, use it unchanged.  Rename parameter
and update doc string.
parent 9129bcc3
......@@ -828,21 +828,32 @@ are shown; the contents of those subgroups are initially hidden."
(custom-unlispify-tag-name group))))))
(defun customize-group-other-window (symbol)
"Customize SYMBOL, which must be a customization group."
(interactive (list (completing-read "Customize group: (default emacs) "
(lambda (symbol)
(get symbol 'custom-group))
(when (stringp symbol)
(if (string-equal "" symbol)
(setq symbol 'emacs)
(setq symbol (intern symbol))))
(list (list symbol 'custom-group))
(format "*Customize Group: %s*" (custom-unlispify-tag-name symbol))))
(defun customize-group-other-window (group)
"Customize GROUP, which must be a customization group."
(interactive (list (let ((completion-ignore-case t))
(completing-read "Customize group: (default emacs) "
(lambda (symbol)
(or (get symbol 'custom-loads)
(get symbol 'custom-group)))
(when (stringp group)
(if (string-equal "" group)
(setq group 'emacs)
(setq group (intern group))))
(or (get group 'custom-group)
(custom-load-symbol group))
(let ((name (format "*Customize Group: %s*"
(custom-unlispify-tag-name group))))
(if (get-buffer name)
(let ((window (selected-window)))
(switch-to-buffer-other-window name)
(select-window window))
(list (list group 'custom-group))
(concat " for group "
(custom-unlispify-tag-name group))))))
(defalias 'customize-variable 'customize-option)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment