diff options
| author | Glenn Morris | 2017-02-21 12:59:56 -0500 |
|---|---|---|
| committer | Glenn Morris | 2017-02-21 12:59:56 -0500 |
| commit | 20dda6be76236253f689037a31dcc82cc9673bd4 (patch) | |
| tree | 7e079394724ec5935f2442738960c714f0528efe | |
| parent | 96cea19842b577eb4f2e057d702aea54d736233e (diff) | |
| download | emacs-20dda6be76236253f689037a31dcc82cc9673bd4.tar.gz emacs-20dda6be76236253f689037a31dcc82cc9673bd4.zip | |
Tweak recent custom-reevaluate-setting change
* lisp/custom.el (custom-reevaluate-setting):
Tweak previous change to avoid font-lock init issues.
| -rw-r--r-- | lisp/custom.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/custom.el b/lisp/custom.el index 7eaff450c5d..030478ab172 100644 --- a/lisp/custom.el +++ b/lisp/custom.el | |||
| @@ -764,17 +764,13 @@ Return non-nil if the `customized-value' property actually changed." | |||
| 764 | Use the :set function to do so. This is useful for customizable options | 764 | Use the :set function to do so. This is useful for customizable options |
| 765 | that are defined before their standard value can really be computed. | 765 | that are defined before their standard value can really be computed. |
| 766 | E.g. dumped variables whose default depends on run-time information." | 766 | E.g. dumped variables whose default depends on run-time information." |
| 767 | (let ((val (car (or (get symbol 'saved-value) | 767 | ;; If it has never been set at all, defvar it so as to mark it |
| 768 | (get symbol 'standard-value))))) | 768 | ;; special, etc (bug#25770). |
| 769 | (if (default-boundp symbol) | 769 | (or (default-boundp symbol) |
| 770 | (funcall (or (get symbol 'custom-set) 'set-default) symbol (eval val)) | 770 | (eval `(defvar ,symbol nil))) |
| 771 | ;; If it has never been set at all, defvar it so as to mark it | 771 | (funcall (or (get symbol 'custom-set) 'set-default) |
| 772 | ;; special, etc (bug#25770). This ignores any :set function, | 772 | symbol |
| 773 | ;; but that is not supposed to be used for initialization anyway. | 773 | (eval (car (or (get symbol 'saved-value) (get symbol 'standard-value)))))) |
| 774 | ;; Or we could move this branch to the start, then unconditionally | ||
| 775 | ;; call the custom-set branch. | ||
| 776 | (eval `(defvar ,symbol ,val))))) | ||
| 777 | |||
| 778 | 774 | ||
| 779 | 775 | ||
| 780 | ;;; Custom Themes | 776 | ;;; Custom Themes |