aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2005-06-17 05:07:26 +0000
committerMiles Bader2005-06-17 05:07:26 +0000
commit579322ca428f5d45be31933b5b9f510ac795253b (patch)
tree15e63fbd25b825476e9a6698ea07d301109c97de /lisp
parent44d554912eedabcbda28f9571ba2bb0717074044 (diff)
downloademacs-579322ca428f5d45be31933b5b9f510ac795253b.tar.gz
emacs-579322ca428f5d45be31933b5b9f510ac795253b.zip
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-430
Remove "-face" suffix from cc-mode faces 2005-06-17 Miles Bader <miles@gnu.org> * lisp/progmodes/cc-fonts.el (c-nonbreakable-space-face): Remove "-face" suffix from face name. (c-cpp-matchers): Use the variable `c-nonbreakable-space-face' instead of literal face.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/progmodes/cc-fonts.el12
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 276aa22fd41..e4fef41319b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12005-06-17 Miles Bader <miles@gnu.org>
2
3 * progmodes/cc-fonts.el (c-nonbreakable-space-face): Remove
4 "-face" suffix from face name.
5 (c-cpp-matchers): Use the variable `c-nonbreakable-space-face'
6 instead of literal face.
7
12005-06-17 Juanma Barranquero <lekktu@gmail.com> 82005-06-17 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * progmodes/ada-mode.el (ada-format-paramlist) 10 * progmodes/ada-mode.el (ada-format-paramlist)
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el
index 29946dc4682..e78ec2c508d 100644
--- a/lisp/progmodes/cc-fonts.el
+++ b/lisp/progmodes/cc-fonts.el
@@ -193,6 +193,10 @@
193 193
194(unless (c-face-name-p c-invalid-face-name) 194(unless (c-face-name-p c-invalid-face-name)
195 (defconst c-invalid-face 'c-invalid-face) ; Necessary in Emacs 19. 195 (defconst c-invalid-face 'c-invalid-face) ; Necessary in Emacs 19.
196 ;; This face should be called `c-invalid' for consistency with the
197 ;; rest of emacs, but as it's only used in very old versions of Emacs,
198 ;; we leave it unchanged (the face-alias mechanism doesn't exist in
199 ;; those old versions).
196 (defface c-invalid-face 200 (defface c-invalid-face
197 '((((class color) (background light)) (:foreground "red1")) 201 '((((class color) (background light)) (:foreground "red1"))
198 (((class color)) (:foreground "hotpink")) 202 (((class color)) (:foreground "hotpink"))
@@ -203,8 +207,8 @@
203;; To make hard spaces visible an inverted version of 207;; To make hard spaces visible an inverted version of
204;; `c-invalid-face-name' is used. Since font-lock in Emacs expands 208;; `c-invalid-face-name' is used. Since font-lock in Emacs expands
205;; all face names in `font-lock-keywords' as variables we need to have 209;; all face names in `font-lock-keywords' as variables we need to have
206;; a variable for it that resolves to its own name. 210;; a variable for it.
207(defconst c-nonbreakable-space-face 'c-nonbreakable-space-face) 211(defconst c-nonbreakable-space-face 'c-nonbreakable-space)
208 212
209(cc-bytecomp-defun face-inverse-video-p) ; Only in Emacs. 213(cc-bytecomp-defun face-inverse-video-p) ; Only in Emacs.
210(cc-bytecomp-defun face-property-instance) ; Only in XEmacs. 214(cc-bytecomp-defun face-property-instance) ; Only in XEmacs.
@@ -511,9 +515,9 @@ stuff. Used on level 1 and higher."
511 (eval . (list 515 (eval . (list
512 "\240" 516 "\240"
513 0 (progn 517 0 (progn
514 (unless (c-face-name-p 'c-nonbreakable-space-face) 518 (unless (c-face-name-p c-nonbreakable-space-face)
515 (c-make-inverse-face c-invalid-face-name 519 (c-make-inverse-face c-invalid-face-name
516 'c-nonbreakable-space-face)) 520 c-nonbreakable-space-face))
517 'c-nonbreakable-space-face))) 521 'c-nonbreakable-space-face)))
518 )) 522 ))
519 523