Re: Reliable after-change-functions (via: Using incremental parsing in Emacs)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Reliable after-change-functions (via: Using incremental parsing in Emacs)

Stephen Leake-3
Jorge Javier Araya Navarro <[hidden email]> writes:

>>  Also keep in mind that syntax highlighting is just one
> application. Other use cases usually want a full parse tree.
>
> like indentation, or so I think 🤔, but indentation may be one of those use
> cases.

To correctly compute indentation for Ada code, you need to parse the
full file initially. After than, indent-region to indent edited code
fits nicely with incremental parse.

--
-- Stephe