diff options
| author | Richard M. Stallman | 1997-09-12 19:43:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-12 19:43:45 +0000 |
| commit | 5aa3f181e54bde9a86092ba55554daa777d9c32c (patch) | |
| tree | faea602a03d873a5c4d95ef98a374abd18c28ef5 | |
| parent | 780249f808af3cb9ad451a1b616a119d07d31ba1 (diff) | |
| download | emacs-5aa3f181e54bde9a86092ba55554daa777d9c32c.tar.gz emacs-5aa3f181e54bde9a86092ba55554daa777d9c32c.zip | |
(customize-group): Handle groups not yet loaded.
(hook) [:value-to-internal]: Use a nil value unchanged.
| -rw-r--r-- | lisp/cus-edit.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 501f757bcf4..0af690058aa 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -809,13 +809,15 @@ are shown; the contents of those subgroups are initially hidden." | |||
| 809 | (completing-read "Customize group: (default emacs) " | 809 | (completing-read "Customize group: (default emacs) " |
| 810 | obarray | 810 | obarray |
| 811 | (lambda (symbol) | 811 | (lambda (symbol) |
| 812 | (get symbol 'custom-group)) | 812 | (or (get symbol 'custom-loads) |
| 813 | (get symbol 'custom-group))) | ||
| 813 | t)))) | 814 | t)))) |
| 814 | |||
| 815 | (when (stringp group) | 815 | (when (stringp group) |
| 816 | (if (string-equal "" group) | 816 | (if (string-equal "" group) |
| 817 | (setq group 'emacs) | 817 | (setq group 'emacs) |
| 818 | (setq group (intern group)))) | 818 | (setq group (intern group)))) |
| 819 | (or (get group 'custom-group) | ||
| 820 | (custom-load-symbol group)) | ||
| 819 | (let ((name (format "*Customize Group: %s*" | 821 | (let ((name (format "*Customize Group: %s*" |
| 820 | (custom-unlispify-tag-name group)))) | 822 | (custom-unlispify-tag-name group)))) |
| 821 | (if (get-buffer name) | 823 | (if (get-buffer name) |
| @@ -2495,7 +2497,7 @@ Optional EVENT is the location for the menu." | |||
| 2495 | (define-widget 'hook 'list | 2497 | (define-widget 'hook 'list |
| 2496 | "A emacs lisp hook" | 2498 | "A emacs lisp hook" |
| 2497 | :value-to-internal (lambda (widget value) | 2499 | :value-to-internal (lambda (widget value) |
| 2498 | (if (symbolp value) | 2500 | (if (and value (symbolp value)) |
| 2499 | (list value) | 2501 | (list value) |
| 2500 | value)) | 2502 | value)) |
| 2501 | :match (lambda (widget value) | 2503 | :match (lambda (widget value) |