# HG changeset patch # User Richard M. Stallman # Date 894689962 0 # Node ID e35aafba190f65f2d5207ab0a8da97b4fe2a5382 # Parent 55f17d895354c819d6327b6d9617a046494bf008 (customize-group-other-window): Handle groups not yet loaded. If buffer exists, use it unchanged. Rename parameter and update doc string. diff -r 55f17d895354 -r e35aafba190f lisp/cus-edit.el --- a/lisp/cus-edit.el Sat May 09 01:23:58 1998 +0000 +++ b/lisp/cus-edit.el Sat May 09 04:59:22 1998 +0000 @@ -828,21 +828,32 @@ (custom-unlispify-tag-name group)))))) ;;;###autoload -(defun customize-group-other-window (symbol) - "Customize SYMBOL, which must be a customization group." - (interactive (list (completing-read "Customize group: (default emacs) " - obarray - (lambda (symbol) - (get symbol 'custom-group)) - t))) - - (when (stringp symbol) - (if (string-equal "" symbol) - (setq symbol 'emacs) - (setq symbol (intern symbol)))) - (custom-buffer-create-other-window - (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) " + obarray + (lambda (symbol) + (or (get symbol 'custom-loads) + (get symbol 'custom-group))) + t)))) + (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)) + (custom-buffer-create-other-window + (list (list group 'custom-group)) + name + (concat " for group " + (custom-unlispify-tag-name group)))))) ;;;###autoload (defalias 'customize-variable 'customize-option)