summaryrefslogtreecommitdiff
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2014-03-22 10:28:20 +0200
committerEli Zaretskii <eliz@gnu.org>2014-03-22 10:28:20 +0200
commite74e1d1bf891e9303da51c4feec56c3978b9f7cb (patch)
tree9c489021f547209358cecacb9aa82fd8b6d88c40 /lisp/faces.el
parent7c326d7116781cc22383c1367de720068a42a8cf (diff)
downloademacs-e74e1d1bf891e9303da51c4feec56c3978b9f7cb.tar.gz
Revert last commit.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el15
1 files changed, 4 insertions, 11 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 145ac398868..e008993b49f 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1619,19 +1619,11 @@ function for its other effects."
(defun face-spec-recalc (face frame)
"Reset the face attributes of FACE on FRAME according to its specs.
-After the reset, the specs are applied from the following sources in this order:
- X resources (if applicable)
- |
- (theme and user customization)
- or, if nonexistent or does not match the current frame,
- (defface default spec)
- |
- defface override spec"
+This applies the defface/custom spec first, then the custom theme specs,
+then the override spec."
(while (get face 'face-alias)
(setq face (get face 'face-alias)))
(face-spec-reset-face face frame)
- (unless no-init-from-resources
- (make-face-x-resource-internal face frame))
;; If FACE is customized or themed, set the custom spec from
;; `theme-face' records.
(let ((theme-faces (get face 'theme-face))
@@ -1649,7 +1641,8 @@ After the reset, the specs are applied from the following sources in this order:
(setq spec (face-spec-choose (face-default-spec face) frame))
(face-spec-set-2 face frame spec))
(setq spec (face-spec-choose (get face 'face-override-spec) frame))
- (face-spec-set-2 face frame spec)))
+ (face-spec-set-2 face frame spec))
+ (make-face-x-resource-internal face frame))
(defun face-spec-set-2 (face frame spec)
"Set the face attributes of FACE on FRAME according to SPEC."