1. Nic Ferrier
  2. emacs


Chong Yidong  committed 67d8825

* progmodes/cc-fonts.el (c-annotation-face): Use defface.

  • Participants
  • Parent commits 1a33edd
  • Branches default

Comments (0)

Files changed (2)

File lisp/ChangeLog

View file
  • Ignore whitespace
+2011-12-06  Chong Yidong  <cyd@gnu.org>
+	* progmodes/cc-fonts.el (c-annotation-face): Use defface.
 2011-12-06  Juanma Barranquero  <lekktu@gmail.com>
 	* textmodes/table.el (table-shorten-cell): Fix typo.

File lisp/progmodes/cc-fonts.el

View file
  • Ignore whitespace
 	 (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)
   ;; We need the following definitions during compilation since they're