aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/faces.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index e93bc2ae518..491410992e9 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1230,6 +1230,10 @@ If SPEC is nil, do nothing."
1230 (case attribute 1230 (case attribute
1231 (:bold (setq attribute :weight value (if value 'bold 'normal))) 1231 (:bold (setq attribute :weight value (if value 'bold 'normal)))
1232 (:italic (setq attribute :slant value (if value 'italic 'normal))) 1232 (:italic (setq attribute :slant value (if value 'italic 'normal)))
1233 ((:foreground :background)
1234 ;; Compatibility with 20.x. Some bogus face specs seem to
1235 ;; exist containing things like `:foreground nil'.
1236 (if (null value) (setq value 'unspecified)))
1233 (t (unless (assq attribute face-x-resources) 1237 (t (unless (assq attribute face-x-resources)
1234 (setq attribute nil)))) 1238 (setq attribute nil))))
1235 (when attribute 1239 (when attribute