aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-11-01 07:19:07 +0000
committerStefan Monnier2005-11-01 07:19:07 +0000
commit621e71ee736bd205fc7be46ee62bdb7fcea7b88c (patch)
tree5337043e5c3c02f2fb8a5d83e762ba676ac409af
parent1b5fd09e6921a465a1d5cc9614147bc24f4d6269 (diff)
downloademacs-621e71ee736bd205fc7be46ee62bdb7fcea7b88c.tar.gz
emacs-621e71ee736bd205fc7be46ee62bdb7fcea7b88c.zip
(face-attribute): Handle the case where a face inherits from
a non-existent face.
-rw-r--r--lisp/faces.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 81a6a953aa5..8ca9e40d7d2 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -374,8 +374,11 @@ completely specified)."
374 ;; VALUE is relative, so merge with inherited faces 374 ;; VALUE is relative, so merge with inherited faces
375 (let ((inh-from (face-attribute face :inherit frame))) 375 (let ((inh-from (face-attribute face :inherit frame)))
376 (unless (or (null inh-from) (eq inh-from 'unspecified)) 376 (unless (or (null inh-from) (eq inh-from 'unspecified))
377 (setq value 377 (condition-case nil
378 (face-attribute-merged-with attribute value inh-from frame))))) 378 (setq value
379 (face-attribute-merged-with attribute value inh-from frame))
380 ;; The `inherit' attribute may point to non existent faces.
381 (error nil)))))
379 (when (and inherit 382 (when (and inherit
380 (not (eq inherit t)) 383 (not (eq inherit t))
381 (face-attribute-relative-p attribute value)) 384 (face-attribute-relative-p attribute value))