diff options
| author | Luc Teirlinck | 2005-07-04 01:44:38 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2005-07-04 01:44:38 +0000 |
| commit | 403546cb0f95f9c59fe63d702703637cf237f321 (patch) | |
| tree | b5ca0bb985b983ffc5158cef44947ef18124e685 | |
| parent | 29a05cd12b136affabed8a97c76bfb77bc6f897d (diff) | |
| download | emacs-403546cb0f95f9c59fe63d702703637cf237f321.tar.gz emacs-403546cb0f95f9c59fe63d702703637cf237f321.zip | |
(custom-theme-set-faces): Make it handle face aliases whose alias
declarations are pre- or autoloaded.
| -rw-r--r-- | lisp/cus-face.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/cus-face.el b/lisp/cus-face.el index 054ad9acaa3..2a0198689de 100644 --- a/lisp/cus-face.el +++ b/lisp/cus-face.el | |||
| @@ -320,6 +320,10 @@ FACE's list property `theme-face' \(using `custom-push-theme')." | |||
| 320 | (spec (nth 1 entry)) | 320 | (spec (nth 1 entry)) |
| 321 | (now (nth 2 entry)) | 321 | (now (nth 2 entry)) |
| 322 | (comment (nth 3 entry))) | 322 | (comment (nth 3 entry))) |
| 323 | ;; If FACE is actually an alias, customize the face it | ||
| 324 | ;; is aliased to. | ||
| 325 | (if (get face 'face-alias) | ||
| 326 | (setq face (get face 'face-alias))) | ||
| 323 | (put face 'saved-face spec) | 327 | (put face 'saved-face spec) |
| 324 | (put face 'saved-face-comment comment) | 328 | (put face 'saved-face-comment comment) |
| 325 | (custom-push-theme 'theme-face face theme 'set spec) | 329 | (custom-push-theme 'theme-face face theme 'set spec) |
| @@ -334,6 +338,8 @@ FACE's list property `theme-face' \(using `custom-push-theme')." | |||
| 334 | ;; Old format, a plist of FACE SPEC pairs. | 338 | ;; Old format, a plist of FACE SPEC pairs. |
| 335 | (let ((face (nth 0 args)) | 339 | (let ((face (nth 0 args)) |
| 336 | (spec (nth 1 args))) | 340 | (spec (nth 1 args))) |
| 341 | (if (get face 'face-alias) | ||
| 342 | (setq face (get face 'face-alias))) | ||
| 337 | (put face 'saved-face spec) | 343 | (put face 'saved-face spec) |
| 338 | (custom-push-theme 'theme-face face theme 'set spec)) | 344 | (custom-push-theme 'theme-face face theme 'set spec)) |
| 339 | (setq args (cdr (cdr args)))))))) | 345 | (setq args (cdr (cdr args)))))))) |