diff options
| author | Chong Yidong | 2007-03-10 22:28:51 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-03-10 22:28:51 +0000 |
| commit | 87a0fbbe39f03a8078705db8654bca4a57a0664e (patch) | |
| tree | fec6dada4061736e59372e66b85109b4e2a563a3 | |
| parent | 0e160a95e2be4de8dc736bab38f3931ec236e73e (diff) | |
| download | emacs-87a0fbbe39f03a8078705db8654bca4a57a0664e.tar.gz emacs-87a0fbbe39f03a8078705db8654bca4a57a0664e.zip | |
(face-set-after-frame-default): Recalculate face customizations after
applying X resources.
| -rw-r--r-- | lisp/faces.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 8e93b9a4f3a..dd5de86f8ea 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1791,7 +1791,11 @@ Initialize colors of certain faces from frame parameters." | |||
| 1791 | (face-spec-set face (face-user-default-spec face) frame) | 1791 | (face-spec-set face (face-user-default-spec face) frame) |
| 1792 | (internal-merge-in-global-face face frame) | 1792 | (internal-merge-in-global-face face frame) |
| 1793 | (if (memq window-system '(x w32 mac)) | 1793 | (if (memq window-system '(x w32 mac)) |
| 1794 | (make-face-x-resource-internal face frame))) | 1794 | (make-face-x-resource-internal face frame)) |
| 1795 | ;; If the user has customized the face, don't let X | ||
| 1796 | ;; resources override the customizations. | ||
| 1797 | (if (get face 'theme-face) | ||
| 1798 | (custom-theme-recalc-face face))) | ||
| 1795 | (error nil))) | 1799 | (error nil))) |
| 1796 | ;; Apply the attributes specified by frame parameters. This | 1800 | ;; Apply the attributes specified by frame parameters. This |
| 1797 | ;; rewrites parameters changed by make-face-x-resource-internal | 1801 | ;; rewrites parameters changed by make-face-x-resource-internal |