[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying preserves font-lock-face

From: Miles Bader
Subject: Re: Copying preserves font-lock-face
Date: Mon, 25 Sep 2006 11:22:15 +0900

martin rudalics <address@hidden> writes:
>  > Yes but face and font-lock-face are different character properties and I'm
>  > talking about the latter.
> I don't understand where you get a `font-lock-face' (sic) property from
> but you can add it to `font-lock-extra-managed-props'.

Font-lock-mode arranges for `font-lock-face' properties to be
interpreted as `face' properties (using `char-property-alias-alist').

This allows a mode to _directly_ add face properties in a font-locked
buffer, and these face properties are safe from being overwritten by
font-lock-mode.  This to support modes which really want to do their own
ad-hoc facification (:-), while still allowing the user to turn face
display on or off using `M-x font-lock-mode' (etc).


I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over.  --Ian Wolff

reply via email to

[Prev in Thread] Current Thread [Next in Thread]