|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] /srv/bzr/emacs/trunk r99706: Use faces not variables for font-lock customization in rst.el. |
Date: | Sat, 20 Mar 2010 16:42:51 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> -(defcustom rst-directive-face > - ;; XEmacs compatibility > - (if (boundp 'font-lock-builtin-face) > - 'font-lock-builtin-face > - 'font-lock-preprocessor-face) > +(make-obsolete-variable 'rst-definition-face > + "customize the face `rst-definition' instead." > + "24.1") > + > +;; XEmacs compatibility (?). > +(defface rst-directive (if (boundp 'font-lock-builtin-face) > + '((t :inherit font-lock-builtin-face)) > + '((t :inherit font-lock-preprocessor-face))) > + "Face used for directives and roles." > + :version "24.1" > + :group 'rst-faces) > + > +(defcustom rst-directive-face 'rst-directive > "Directives and roles." > :group 'rst-faces > :type '(face)) For better XEmacs compatibility the `if' test should stay in the defcustom. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |