[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r106626: * progmodes/cc-fonts.el (c-a
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r106626: * progmodes/cc-fonts.el (c-annotation-face): Use defface. |
Date: |
Tue, 06 Dec 2011 10:22:48 +0800 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 106626
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Tue 2011-12-06 10:22:48 +0800
message:
* progmodes/cc-fonts.el (c-annotation-face): Use defface.
modified:
lisp/ChangeLog
lisp/progmodes/cc-fonts.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-12-06 01:30:54 +0000
+++ b/lisp/ChangeLog 2011-12-06 02:22:48 +0000
@@ -1,3 +1,7 @@
+2011-12-06 Chong Yidong <address@hidden>
+
+ * progmodes/cc-fonts.el (c-annotation-face): Use defface.
+
2011-12-06 Juanma Barranquero <address@hidden>
* textmodes/table.el (table-shorten-cell): Fix typo.
=== modified file 'lisp/progmodes/cc-fonts.el'
--- a/lisp/progmodes/cc-fonts.el 2011-11-20 02:29:42 +0000
+++ b/lisp/progmodes/cc-fonts.el 2011-12-06 02:22:48 +0000
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r106626: * progmodes/cc-fonts.el (c-annotation-face): Use defface.,
Chong Yidong <=