emacs-devel
[Top][All Lists]
Advanced

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

Re: how to prevent font-lock from messing with a portion of text?


From: Stefan Monnier
Subject: Re: how to prevent font-lock from messing with a portion of text?
Date: Thu, 22 Mar 2007 14:35:05 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux)

> How can one prevent font-lock from changing the text properties of a given
> portion of text? I tried (put-text-property start end 'fontified t), but C-x
> C-s just re-font-lock fontifies the text in question.  I also tried binding
> `inhibit-modification-hooks' to t, with the same result.

There are many different ways, each one with advantages and quirks,
I can't recommend any without knowing more of what you're trying to do,


        Stefan




reply via email to

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