diff options
| author | Chong Yidong | 2006-02-19 17:26:44 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-02-19 17:26:44 +0000 |
| commit | fccf278488785f482c7c50ac0713aa8f60dafbe9 (patch) | |
| tree | be85be8ff0a7780799a800f49084d436d3fdbdce | |
| parent | 4a9ceb4e9d9e0b5a8c45844c8bd1809985e5e3ef (diff) | |
| download | emacs-fccf278488785f482c7c50ac0713aa8f60dafbe9.tar.gz emacs-fccf278488785f482c7c50ac0713aa8f60dafbe9.zip | |
* custom.el (customize-mark-as-set): Push to `user' theme.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/custom.el | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ce799882a1a..2f23a9cb1db 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | 2006-02-19 Chong Yidong <cyd@stupidchicken.com> | 1 | 2006-02-19 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 2 | ||
| 3 | * custom.el (customize-mark-to-save): Load the symbol's | 3 | * custom.el (customize-mark-as-set): Push to `user' theme. |
| 4 | dependencies, so that `standard-value' will be present. | ||
| 5 | 4 | ||
| 6 | * cus-edit.el (custom-save-variables): Allow unthemed values. | 5 | * cus-edit.el (custom-save-variables): Allow unthemed values. |
| 6 | (customize-set-variable): Push setting to `user' theme. | ||
| 7 | 7 | ||
| 8 | 2006-02-19 Nick Roberts <nickrob@snap.net.nz> | 8 | 2006-02-19 Nick Roberts <nickrob@snap.net.nz> |
| 9 | 9 | ||
diff --git a/lisp/custom.el b/lisp/custom.el index fe2829e644a..bdac459daee 100644 --- a/lisp/custom.el +++ b/lisp/custom.el | |||
| @@ -653,7 +653,6 @@ default value. Otherwise, set it to nil. | |||
| 653 | To actually save the value, call `custom-save-all'. | 653 | To actually save the value, call `custom-save-all'. |
| 654 | 654 | ||
| 655 | Return non-nil iff the `saved-value' property actually changed." | 655 | Return non-nil iff the `saved-value' property actually changed." |
| 656 | (custom-load-symbol symbol) | ||
| 657 | (let* ((get (or (get symbol 'custom-get) 'default-value)) | 656 | (let* ((get (or (get symbol 'custom-get) 'default-value)) |
| 658 | (value (funcall get symbol)) | 657 | (value (funcall get symbol)) |
| 659 | (saved (get symbol 'saved-value)) | 658 | (saved (get symbol 'saved-value)) |
| @@ -691,7 +690,9 @@ Return non-nil iff the `customized-value' property actually changed." | |||
| 691 | (not (equal value (condition-case nil | 690 | (not (equal value (condition-case nil |
| 692 | (eval (car old)) | 691 | (eval (car old)) |
| 693 | (error nil))))) | 692 | (error nil))))) |
| 694 | (put symbol 'customized-value (list (custom-quote value))) | 693 | (progn (put symbol 'customized-value (list (custom-quote value))) |
| 694 | (custom-push-theme 'theme-value symbol 'user 'set | ||
| 695 | (custom-quote value))) | ||
| 695 | (put symbol 'customized-value nil)) | 696 | (put symbol 'customized-value nil)) |
| 696 | ;; Changed? | 697 | ;; Changed? |
| 697 | (not (equal customized (get symbol 'customized-value))))) | 698 | (not (equal customized (get symbol 'customized-value))))) |