]> git.eshelyaron.com Git - emacs.git/commitdiff
(face-spec-set): Only face-spec-reset-face when
authorGerd Moellmann <gerd@gnu.org>
Fri, 8 Sep 2000 13:51:08 +0000 (13:51 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 8 Sep 2000 13:51:08 +0000 (13:51 +0000)
ATTRS is non-nil.

lisp/faces.el

index 942debc106e5631b345aff38740804369a939b4b..e1eedb84dd8ad319f99e7ea4c7997bd3df2f070d 100644 (file)
@@ -1174,7 +1174,8 @@ If FRAME is nil, the current FRAME is used."
 FRAME is the frame whose frame-local face is set.  FRAME nil means
 do it on all frames.  See `defface' for information about SPEC."
   (let ((attrs (face-spec-choose spec frame)))
-    (face-spec-reset-face face frame)
+    (when attrs
+      (face-spec-reset-face face frame))
     (while attrs
       (let ((attribute (car attrs))
            (value (car (cdr attrs))))