]> git.eshelyaron.com Git - emacs.git/commitdiff
(custom-set-variables): Load the requests first,
authorKarl Heuer <kwzh@gnu.org>
Wed, 30 Sep 1998 19:15:17 +0000 (19:15 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 30 Sep 1998 19:15:17 +0000 (19:15 +0000)
then check the symbol's `set' function.

lisp/custom.el

index fd90be477b25c889a9b07d5569326c95a5173084..5f08474ddc75e0754a26a93eab5a939d220a49e1 100644 (file)
@@ -408,7 +408,11 @@ the default value for the SYMBOL."
                 (value (nth 1 entry))
                 (now (nth 2 entry))
                 (requests (nth 3 entry))
-                (set (or (get symbol 'custom-set) 'custom-set-default)))
+                set)
+           (when requests
+             (put symbol 'custom-requests requests)
+             (mapcar 'require requests))
+           (setq set (or (get symbol 'custom-set) 'custom-set-default))
            (put symbol 'saved-value (list value))
            (cond (now 
                   ;; Rogue variable, set it now.
@@ -417,9 +421,6 @@ the default value for the SYMBOL."
                  ((default-boundp symbol)
                   ;; Something already set this, overwrite it.
                   (funcall set symbol (eval value))))
-           (when requests
-             (put symbol 'custom-requests requests)
-             (mapcar 'require requests))
            (setq args (cdr args)))
        ;; Old format, a plist of SYMBOL VALUE pairs.
        (message "Warning: old format `custom-set-variables'")