diff options
| author | Karl Heuer | 1998-09-30 19:15:17 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-09-30 19:15:17 +0000 |
| commit | 98743206de8a53e5231a3ae32d898a7e050486c4 (patch) | |
| tree | 4eb5f6181f0ab7cb8cc6d6b30f0dff289523aec5 | |
| parent | 100b770bcfb3d9caf81d420bd1fbb9fb4ec61c41 (diff) | |
| download | emacs-98743206de8a53e5231a3ae32d898a7e050486c4.tar.gz emacs-98743206de8a53e5231a3ae32d898a7e050486c4.zip | |
(custom-set-variables): Load the requests first,
then check the symbol's `set' function.
| -rw-r--r-- | lisp/custom.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/custom.el b/lisp/custom.el index fd90be477b2..5f08474ddc7 100644 --- a/lisp/custom.el +++ b/lisp/custom.el | |||
| @@ -408,7 +408,11 @@ the default value for the SYMBOL." | |||
| 408 | (value (nth 1 entry)) | 408 | (value (nth 1 entry)) |
| 409 | (now (nth 2 entry)) | 409 | (now (nth 2 entry)) |
| 410 | (requests (nth 3 entry)) | 410 | (requests (nth 3 entry)) |
| 411 | (set (or (get symbol 'custom-set) 'custom-set-default))) | 411 | set) |
| 412 | (when requests | ||
| 413 | (put symbol 'custom-requests requests) | ||
| 414 | (mapcar 'require requests)) | ||
| 415 | (setq set (or (get symbol 'custom-set) 'custom-set-default)) | ||
| 412 | (put symbol 'saved-value (list value)) | 416 | (put symbol 'saved-value (list value)) |
| 413 | (cond (now | 417 | (cond (now |
| 414 | ;; Rogue variable, set it now. | 418 | ;; Rogue variable, set it now. |
| @@ -417,9 +421,6 @@ the default value for the SYMBOL." | |||
| 417 | ((default-boundp symbol) | 421 | ((default-boundp symbol) |
| 418 | ;; Something already set this, overwrite it. | 422 | ;; Something already set this, overwrite it. |
| 419 | (funcall set symbol (eval value)))) | 423 | (funcall set symbol (eval value)))) |
| 420 | (when requests | ||
| 421 | (put symbol 'custom-requests requests) | ||
| 422 | (mapcar 'require requests)) | ||
| 423 | (setq args (cdr args))) | 424 | (setq args (cdr args))) |
| 424 | ;; Old format, a plist of SYMBOL VALUE pairs. | 425 | ;; Old format, a plist of SYMBOL VALUE pairs. |
| 425 | (message "Warning: old format `custom-set-variables'") | 426 | (message "Warning: old format `custom-set-variables'") |