emacs-devel
[Top][All Lists]
Advanced

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

Re: Major modes using `widen' is a good, even essential, programming pra


From: Dmitry Gutov
Subject: Re: Major modes using `widen' is a good, even essential, programming practice.
Date: Tue, 9 Aug 2022 00:16:23 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 08.08.2022 14:30, Eli Zaretskii wrote:
So if you dislike the current solution of locked narrowing, how about
making syntax-ppss work in chunks (perhaps from an idle timer?), after
initially scanning only the first small portion of the file.  The goal
is to have the file displayed quickly enough, and thereafter complete
the scan when possible.

The file is already displayed "quickly enough". The problem arrives when you try to navigate far from BOB (e.g. to EOB).

What's going to happen then, if the timer hasn't fired yet? And for the timer's work to be useful, it has to had happened between the last edit and the subsequent navigation. A lot of idle timers like that = a lot of discarded work.



reply via email to

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