diff options
author | 2002-07-02 11:16:11 +0000 | |
---|---|---|
committer | 2002-07-02 11:16:11 +0000 | |
commit | 05b29b3e3ba90cf04332d8cf557357344d8f70c4 (patch) | |
tree | 4c660cab1b0c1d7bbfdbb28db7d944e09fe04dac /generic | |
parent | 4aae02a7449c8a11552b3947df7ee9ca52440b65 (diff) |
Add definition of font-lock-preprocessor-face
Diffstat (limited to 'generic')
-rw-r--r-- | generic/proof-compat.el | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/generic/proof-compat.el b/generic/proof-compat.el index 28ab576f..e78d3d91 100644 --- a/generic/proof-compat.el +++ b/generic/proof-compat.el @@ -281,6 +281,26 @@ The modified ALIST is returned." (autoload 'font-lock-append-text-property "font-lock")) +;; font-lock-preprocessor-face +;; This face is missing from Emacs 21.2's font-lock, +;; but used in Isabelle highlighting, at least. +(eval-after-load "font-lock" +(unless (boundp 'font-lock-preprocessor-face) + ;; Taken from font-lock.el in XEmacs 21.4.8 (V 1.52) + (defvar font-lock-preprocessor-face 'font-lock-preprocessor-face + "This variable should not be set. +It is present only for horrid FSF compatibility reasons. +The corresponding face should be set using `edit-faces' or the +`set-face-*' functions.") + + (defface font-lock-preprocessor-face + '((((class color) (background dark)) (:foreground "steelblue1")) + (((class color) (background light)) (:foreground "blue3")) + (t (:underline t))) + "Font Lock Mode face used to highlight preprocessor conditionals." + :group 'font-lock-faces))) + + ;; Handle buggy buffer-syntactic-context workaround in XEmacs 21.1, ;; and GNU non-implementation. @@ -304,12 +324,8 @@ The modified ALIST is returned." ;;; -;; Error in GNU emacs that this is undefined. I haven't time to -;; investigate why. -(unless proof-running-on-XEmacs - (defvar font-lock-preprocessor-face nil)) ;; End of proof-compat.el -(provide 'proof-compat)
\ No newline at end of file +(provide 'proof-compat) |