diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 653aa52f645..a8b65d6915b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-07-05 Julien Danjou + + * textmodes/rst.el (rst-define-level-faces): Use `facep' rather + than `boundp' to check if face is set. + 2011-07-05 Juanma Barranquero * register.el (registerv-make): diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el index 9ed5309bb53..c1ce950522c 100644 --- a/lisp/textmodes/rst.el +++ b/lisp/textmodes/rst.el @@ -2800,7 +2800,7 @@ details check the Rst Faces Defaults group." rst-level-face-base-color (+ (* (1- i) rst-level-face-step-light) rst-level-face-base-light)))) - (unless (boundp sym) + (unless (facep sym) (make-empty-face sym) (set-face-doc-string sym doc) (set-face-background sym col)