diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/custom.el | 14 |
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7fe0f61d723..d64f787931a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,4 +1,10 @@ | |||
| 1 | 2006-05-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * custom.el (custom-push-theme): Load the variable before checking | ||
| 4 | its `standard-value'. | ||
| 5 | |||
| 1 | 2006-05-13 Lars Hansen <larsh@soem.dk> | 6 | 2006-05-13 Lars Hansen <larsh@soem.dk> |
| 7 | |||
| 2 | * desktop.el (desktop-save): Use with-temp-buffer. | 8 | * desktop.el (desktop-save): Use with-temp-buffer. |
| 3 | 9 | ||
| 4 | 2006-05-12 Glenn Morris <rgm@gnu.org> | 10 | 2006-05-12 Glenn Morris <rgm@gnu.org> |
diff --git a/lisp/custom.el b/lisp/custom.el index 2ac1e23ac49..c0169812d36 100644 --- a/lisp/custom.el +++ b/lisp/custom.el | |||
| @@ -825,11 +825,15 @@ See `custom-known-themes' for a list of known themes." | |||
| 825 | ;; theme is later disabled. | 825 | ;; theme is later disabled. |
| 826 | (if (null old) | 826 | (if (null old) |
| 827 | (if (and (eq prop 'theme-value) | 827 | (if (and (eq prop 'theme-value) |
| 828 | (boundp symbol) | 828 | (boundp symbol)) |
| 829 | (or (null (get symbol 'standard-value)) | 829 | (let ((sv (get symbol 'standard-value))) |
| 830 | (not (equal (eval (car (get symbol 'standard-value))) | 830 | (when (and (null sv) (custom-variable-p symbol)) |
| 831 | (symbol-value symbol))))) | 831 | (custom-load-symbol symbol) |
| 832 | (setq old (list (list 'changed (symbol-value symbol)))) | 832 | (setq sv (get symbol 'standard-value))) |
| 833 | (if (or (null sv) | ||
| 834 | (not (equal (eval (car (get symbol 'standard-value))) | ||
| 835 | (symbol-value symbol)))) | ||
| 836 | (setq old (list (list 'changed (symbol-value symbol)))))) | ||
| 833 | (if (and (facep symbol) | 837 | (if (and (facep symbol) |
| 834 | (not (face-spec-match-p symbol (get symbol 'face-defface-spec)))) | 838 | (not (face-spec-match-p symbol (get symbol 'face-defface-spec)))) |
| 835 | (setq old (list (list 'changed (list | 839 | (setq old (list (list 'changed (list |