Commit 10ab7a51 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(face-spec-set): Only face-spec-reset-face when

ATTRS is non-nil.
parent 326cdd74
......@@ -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))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment