# HG changeset patch # User Juri Linkov # Date 1133663964 0 # Node ID 7af5860f4444fd78905a6e120a5cfbd9ef43c3f0 # Parent 7060bfa315738443a63106f9ded1fa933869231a (customize-group, customize-group-other-window): Filter out autoloaded options from the group completion list by using heuristics that autoloaded groups don't have `custom-autoload' property on their symbols (they have only `custom-loads'). diff -r 7060bfa31573 -r 7af5860f4444 lisp/cus-edit.el --- a/lisp/cus-edit.el Sun Dec 04 02:37:35 2005 +0000 +++ b/lisp/cus-edit.el Sun Dec 04 02:39:24 2005 +0000 @@ -975,13 +975,15 @@ ;;;###autoload (defun customize-group (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)))) + (interactive + (list (let ((completion-ignore-case t)) + (completing-read "Customize group (default emacs): " + obarray + (lambda (symbol) + (or (and (get symbol 'custom-loads) + (not (get symbol 'custom-autoload))) + (get symbol 'custom-group))) + t)))) (when (stringp group) (if (string-equal "" group) (setq group 'emacs) @@ -998,13 +1000,15 @@ ;;;###autoload (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)))) + (interactive + (list (let ((completion-ignore-case t)) + (completing-read "Customize group (default emacs): " + obarray + (lambda (symbol) + (or (and (get symbol 'custom-loads) + (not (get symbol 'custom-autoload))) + (get symbol 'custom-group))) + t)))) (when (stringp group) (if (string-equal "" group) (setq group 'emacs)