From 28d3917c738c44e79ca36c79f7a6d22b9a4f6fd2 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 6 Dec 2011 10:22:48 +0800 Subject: [PATCH] * progmodes/cc-fonts.el (c-annotation-face): Use defface. --- lisp/ChangeLog | 4 ++++ lisp/progmodes/cc-fonts.el | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6657a9da7d9..c222302cc9d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-12-06 Chong Yidong + + * progmodes/cc-fonts.el (c-annotation-face): Use defface. + 2011-12-06 Juanma Barranquero * textmodes/table.el (table-shorten-cell): Fix typo. diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index a31de35f3ba..ac4d1bf9e57 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el @@ -194,9 +194,13 @@ (unless (face-property-instance oldface 'reverse) (invert-face newface))))) -(defvar c-annotation-face (make-face 'c-annotation-face) - "Face used to highlight annotations in java-mode and other modes that may wish to use it.") -(set-face-foreground 'c-annotation-face "blue") +(defvar c-annotation-face 'c-annotation-face) + +(defface c-annotation-face + '((default :inherit font-lock-constant-face)) + "Face for highlighting annotations in Java mode and similar modes." + :version "24.1" + :group 'c) (eval-and-compile ;; We need the following definitions during compilation since they're -- 2.39.2