diff options
| author | Chong Yidong | 2006-01-04 20:16:50 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-01-04 20:16:50 +0000 |
| commit | b76747af07091b8e44df8f8351e3fef388d4f142 (patch) | |
| tree | c32ce8870bba75f439950a4b993bf61e91bbb8e8 | |
| parent | 913645cd75fa063e918fc33f7b0d091769cecc3d (diff) | |
| download | emacs-b76747af07091b8e44df8f8351e3fef388d4f142.tar.gz emacs-b76747af07091b8e44df8f8351e3fef388d4f142.zip | |
* cus-edit.el (custom-face-save): Push to theme-face before
setting face spec.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 22d3d816b35..18dba595537 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | (Custom-reset-standard): Fix y-or-n-p messages. | 7 | (Custom-reset-standard): Fix y-or-n-p messages. |
| 8 | (custom-link): New face for links. | 8 | (custom-link): New face for links. |
| 9 | (custom-buffer-create-internal, custom-manual): Use it. | 9 | (custom-buffer-create-internal, custom-manual): Use it. |
| 10 | (custom-face-save): Push to theme-face before setting face spec. | ||
| 10 | 11 | ||
| 11 | * wid-edit.el (widget-default-mouse-face-get): New function. | 12 | * wid-edit.el (widget-default-mouse-face-get): New function. |
| 12 | (widget-specify-button): Handle mouse-face like button-face. | 13 | (widget-specify-button): Handle mouse-face like button-face. |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 678fc71f621..98c343c4db8 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -3435,6 +3435,7 @@ Optional EVENT is the location for the menu." | |||
| 3435 | (setq comment nil) | 3435 | (setq comment nil) |
| 3436 | ;; Make the comment invisible by hand if it's empty | 3436 | ;; Make the comment invisible by hand if it's empty |
| 3437 | (custom-comment-hide comment-widget)) | 3437 | (custom-comment-hide comment-widget)) |
| 3438 | (custom-push-theme 'theme-face symbol 'user 'set value) | ||
| 3438 | (if (face-spec-choose value) | 3439 | (if (face-spec-choose value) |
| 3439 | (face-spec-set symbol value) | 3440 | (face-spec-set symbol value) |
| 3440 | ;; face-set-spec ignores empty attribute lists, so just give it | 3441 | ;; face-set-spec ignores empty attribute lists, so just give it |
| @@ -3442,7 +3443,6 @@ Optional EVENT is the location for the menu." | |||
| 3442 | (face-spec-set symbol '((t :foreground unspecified)))) | 3443 | (face-spec-set symbol '((t :foreground unspecified)))) |
| 3443 | (unless (eq (widget-get widget :custom-state) 'standard) | 3444 | (unless (eq (widget-get widget :custom-state) 'standard) |
| 3444 | (put symbol 'saved-face value)) | 3445 | (put symbol 'saved-face value)) |
| 3445 | (custom-push-theme 'theme-face symbol 'user 'set value) | ||
| 3446 | (put symbol 'customized-face nil) | 3446 | (put symbol 'customized-face nil) |
| 3447 | (put symbol 'face-comment comment) | 3447 | (put symbol 'face-comment comment) |
| 3448 | (put symbol 'customized-face-comment nil) | 3448 | (put symbol 'customized-face-comment nil) |