[Top][All Lists]

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

Re: How to add pseudo vector types

From: Stefan Monnier
Subject: Re: How to add pseudo vector types
Date: Sat, 24 Jul 2021 10:19:53 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> But font-lock may look (and fontify) beyond the narrowing, and
>> when it calls `syntax-ppss` it will usually parse from 1 rather than
>> from `point-min`.
> Yes, and that's why I said that callers should call 'widen' if they
> need to do so.
> The question is what should TS reading do _by_default_.

Ah, then we're in violent agreement.  The low-level interface with TS
should access the text within the narrowed region.  And the code that
calls TS will usually want to widen beforehand.


reply via email to

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