[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-fonts.el
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-fonts.el |
Date: |
Fri, 17 Jun 2005 01:07:27 -0400 |
Index: emacs/lisp/progmodes/cc-fonts.el
diff -c emacs/lisp/progmodes/cc-fonts.el:1.10
emacs/lisp/progmodes/cc-fonts.el:1.11
*** emacs/lisp/progmodes/cc-fonts.el:1.10 Mon May 23 00:03:59 2005
--- emacs/lisp/progmodes/cc-fonts.el Fri Jun 17 05:07:25 2005
***************
*** 193,198 ****
--- 193,202 ----
(unless (c-face-name-p c-invalid-face-name)
(defconst c-invalid-face 'c-invalid-face) ; Necessary in Emacs 19.
+ ;; This face should be called `c-invalid' for consistency with the
+ ;; rest of emacs, but as it's only used in very old versions of Emacs,
+ ;; we leave it unchanged (the face-alias mechanism doesn't exist in
+ ;; those old versions).
(defface c-invalid-face
'((((class color) (background light)) (:foreground "red1"))
(((class color)) (:foreground "hotpink"))
***************
*** 203,210 ****
;; To make hard spaces visible an inverted version of
;; `c-invalid-face-name' is used. Since font-lock in Emacs expands
;; all face names in `font-lock-keywords' as variables we need to have
! ;; a variable for it that resolves to its own name.
! (defconst c-nonbreakable-space-face 'c-nonbreakable-space-face)
(cc-bytecomp-defun face-inverse-video-p) ; Only in Emacs.
(cc-bytecomp-defun face-property-instance) ; Only in XEmacs.
--- 207,214 ----
;; To make hard spaces visible an inverted version of
;; `c-invalid-face-name' is used. Since font-lock in Emacs expands
;; all face names in `font-lock-keywords' as variables we need to have
! ;; a variable for it.
! (defconst c-nonbreakable-space-face 'c-nonbreakable-space)
(cc-bytecomp-defun face-inverse-video-p) ; Only in Emacs.
(cc-bytecomp-defun face-property-instance) ; Only in XEmacs.
***************
*** 511,519 ****
(eval . (list
"\240"
0 (progn
! (unless (c-face-name-p 'c-nonbreakable-space-face)
(c-make-inverse-face c-invalid-face-name
! 'c-nonbreakable-space-face))
'c-nonbreakable-space-face)))
))
--- 515,523 ----
(eval . (list
"\240"
0 (progn
! (unless (c-face-name-p c-nonbreakable-space-face)
(c-make-inverse-face c-invalid-face-name
! c-nonbreakable-space-face))
'c-nonbreakable-space-face)))
))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/progmodes/cc-fonts.el,
Miles Bader <=