]> git.eshelyaron.com Git - emacs.git/commitdiff
(face-spec-recalc): When the face is set using Customize, avoid
authorChong Yidong <cyd@stupidchicken.com>
Tue, 10 Jun 2008 19:56:42 +0000 (19:56 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 10 Jun 2008 19:56:42 +0000 (19:56 +0000)
recalculating it twice.

lisp/faces.el

index 5537fbef6c35dfe7f47a3069d470187d17a78c7b..302cf6c02d865c541e6599fbcfd2504f6b6309e9 100644 (file)
@@ -1506,8 +1506,9 @@ This applies the defface/custom spec first, then the custom theme specs,
 then the override spec."
   (face-spec-reset-face face frame)
   (let ((face-sym (or (get face 'face-alias) face)))
-    (face-spec-set-2 face frame
-                    (face-user-default-spec face))
+    (or (get face 'customized-face)
+       (get face 'saved-face)
+       (face-spec-set-2 face frame (face-default-spec face)))
     (let ((theme-faces (reverse (get face-sym 'theme-face))))
       (dolist (spec theme-faces)
        (face-spec-set-2 face frame (cadr spec))))