help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Best way to detect font-lock mode is on?


From: Ilya Zakharevich
Subject: Re: Best way to detect font-lock mode is on?
Date: Sat, 15 Jan 2011 07:54:57 +0000 (UTC)
User-agent: slrn/0.9.8.1pl1 (Linux)

On 2011-01-14, Tim X <timx@nospam.dev.null> wrote:
>> AFAIU, you think that the logic of delegation
>>
>>   your mode --> some-other-mode --> text-property(font)-ification
>>
>> is somehow sufficient to free you from caring about time-related
>> issues.  Wrong.  Given that WHATEVER-ication would usually (or often?)
>> run in a time-delayed hook can't be ignored.

> I understand that. However, the test is being applied to earlier points
> in the file, not to the current text being inserted. Theoretically, I
> guess there could be a very small chance of the text not having being
> fontified, but in practice, this does not appear to be the case. Timing
> could well be an issue if I wanted to use this information on the text
> as it is being inserted, but I'm not testing the current text. If it
> does turn out to be an issue, then I will just use syntax-ppss. 

Feel free to use "theoretical arguments" to make your debugging life
miserable at some time in the future.  [Just think about how you would
determine that "it does turn out to be an issue"?]

Yours,
Ilya


reply via email to

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