[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Global Font Lock by default
From: |
Dan Nicolaescu |
Subject: |
Re: Global Font Lock by default |
Date: |
Tue, 01 Nov 2005 07:05:57 -0800 |
Stefan Monnier <address@hidden> writes:
> > ! (:inherit default))
>
> Inheriting from default is rarely what you want to do. Here it's just
> a workaround. The only case I can think of where it makes sense to inherit
> from `default' is in cases where you want this face to override the effects
> of other faces, e.g. if you want to override the background color of the
> header-line on some part of the header-line text, you can place on that text
> a face that inherits from `default'.
How about this as a better workaround?
*** font-lock.el 31 Oct 2005 08:29:09 -0800 1.280
--- font-lock.el 01 Nov 2005 07:05:12 -0800
***************
*** 1691,1699 ****
(((class color) (min-colors 16) (background dark))
(:foreground "red1"))
(((class color) (min-colors 8) (background light))
! )
(((class color) (min-colors 8) (background dark))
! )
(t (:weight bold :slant italic)))
"Font Lock mode face used to highlight comments."
:group 'font-lock-highlighting-faces)
--- 1691,1701 ----
(((class color) (min-colors 16) (background dark))
(:foreground "red1"))
(((class color) (min-colors 8) (background light))
! ;; ":foreground nil" is a no-op in this case, but it forces the
! ;; face to be reset at run time.
! (:foreground nil))
(((class color) (min-colors 8) (background dark))
! (:foreground nil))
(t (:weight bold :slant italic)))
"Font Lock mode face used to highlight comments."
:group 'font-lock-highlighting-faces)
- Re: Global Font Lock by default, (continued)
- Re: Global Font Lock by default, Richard M. Stallman, 2005/11/02
- Re: Global Font Lock by default, David Kastrup, 2005/11/02
- Re: Global Font Lock by default, Luc Teirlinck, 2005/11/02
- Re: Global Font Lock by default, Richard M. Stallman, 2005/11/03
- Re: Global Font Lock by default, Stefan Monnier, 2005/11/03
- Re: Global Font Lock by default, David Kastrup, 2005/11/03
- Re: Global Font Lock by default, Luc Teirlinck, 2005/11/03
Re: Global Font Lock by default, Romain Francoise, 2005/11/01
Re: Global Font Lock by default,
Dan Nicolaescu <=
Re: Global Font Lock by default, Richard M. Stallman, 2005/11/01