]> git.eshelyaron.com Git - emacs.git/commitdiff
* custom.el (custom-push-theme): Load the variable before checking
authorChong Yidong <cyd@stupidchicken.com>
Sat, 13 May 2006 16:16:43 +0000 (16:16 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 13 May 2006 16:16:43 +0000 (16:16 +0000)
its `standard-value'.

lisp/ChangeLog
lisp/custom.el

index 7fe0f61d723366875469af6a9537658ef69a3172..d64f787931aebefc15a572cd737f85bf3ad20eae 100644 (file)
@@ -1,4 +1,10 @@
+2006-05-13  Chong Yidong  <cyd@stupidchicken.com>
+
+       * custom.el (custom-push-theme): Load the variable before checking
+       its `standard-value'.
+
 2006-05-13 Lars Hansen <larsh@soem.dk>
+
        * desktop.el (desktop-save): Use with-temp-buffer.
 
 2006-05-12  Glenn Morris  <rgm@gnu.org>
index 2ac1e23ac493735bdcf77299e4c8d766fb5dd465..c0169812d36ceca8c71f457d1e33c875f50ce722 100644 (file)
@@ -825,11 +825,15 @@ See `custom-known-themes' for a list of known themes."
        ;; theme is later disabled.
        (if (null old)
            (if (and (eq prop 'theme-value)
-                    (boundp symbol)
-                    (or (null (get symbol 'standard-value))
-                        (not (equal (eval (car (get symbol 'standard-value)))
-                                    (symbol-value symbol)))))
-               (setq old (list (list 'changed (symbol-value symbol))))
+                    (boundp symbol))
+               (let ((sv (get symbol 'standard-value)))
+                 (when (and (null sv) (custom-variable-p symbol))
+                   (custom-load-symbol symbol)
+                   (setq sv (get symbol 'standard-value)))
+                 (if (or (null sv)
+                         (not (equal (eval (car (get symbol 'standard-value)))
+                                     (symbol-value symbol))))
+                     (setq old (list (list 'changed (symbol-value symbol))))))
              (if (and (facep symbol)
                       (not (face-spec-match-p symbol (get symbol 'face-defface-spec))))
                  (setq old (list (list 'changed (list