emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-tree-sitter and Emacs


From: Eli Zaretskii
Subject: Re: emacs-tree-sitter and Emacs
Date: Fri, 03 Apr 2020 10:33:54 +0300

> >> I would think that you at least need to parse everything displayed and
> >> everything before what is displayed.  (You need all prior context.  What
> >> if someone opened a comment on line 1 and hasn't closed it, for
> >> example?)
> >
> > Each buffer always knows which part of it remains unchanged.  
> 
> Only because jit-lock-after-change on after-change-functions updates
> that knowledge, via the fontified text property. But that in turn
> assumes that the entire buffer has been fontified, which is typically
> not the case; I rarely scroll thru an entire file.
> 
> Unless there is some other mechanism that maintains change locations?

I meant BEG_UNCHANGED and END_UNCHANGED.



reply via email to

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