[Top][All Lists]

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

Re: How to add pseudo vector types

From: Dmitry Gutov
Subject: Re: How to add pseudo vector types
Date: Sun, 25 Jul 2021 01:54:41 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 24.07.2021 12:33, Stephen Leake wrote:
Plus, if tree-sitter respects narrowing, it could happen where a user
narrows the buffer, the font-locking changes and is not correct
anymore. Maybe that’s not the user want.
Exactly. The indent will be wrong, too, if narrowing excludes a
containing block.

The important pieces of code now (in recent Emacs versions) undo narrowing when do fundamental operations like parsing the buffer (with syntax-spss), applying font-lock rules or doing indentation, unless instructed otherwise by the major mode, or the multiple-major-mode framework.

reply via email to

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