emacs-devel
[Top][All Lists]
Advanced

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

Re: set-text-properties and jit-lock-mode


From: Alan Schmitt
Subject: Re: set-text-properties and jit-lock-mode
Date: Mon, 22 Feb 2016 08:38:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Hello Eli,

On 2016-02-21 21:30, Eli Zaretskii <address@hidden> writes:

>> As `set-text-properties' is a function in C, I don't know how to look at
>> its source (any pointers on how to do this would be great).
>
> You don't need to look at its source.  The documentation clearly says
> that it completely replaces the property list of the specified region
> with the properties you specify as its arguments.

Yes, I read that. But as I was not seeing this happen, I wanted to
understand why. I was wrongly assuming set-text-properties was not
changing them, but if I understand your message it does change them, but
they are changed back because of font-lock.

>> Is it supposed not to work for faces when jit-lock is on?
>
> Yes.  Font-lock overwrites the 'face' text properties with its own,
> because it uses set-text-properties.

Is there a way to change the face that plays well with font-lock? I
tried `font-lock-append-text-property' but it did not work.

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52

Attachment: signature.asc
Description: PGP signature


reply via email to

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