GNU bug report logs - #56393
Actually fix the long lines display bug

Previous Next

Package: emacs;

Reported by: Gregory Heytings <gregory <at> heytings.org>

Date: Tue, 5 Jul 2022 08:50:02 UTC

Severity: normal

Done: Gregory Heytings <gregory <at> heytings.org>

Bug is archived. No further changes may be made.

Full log


Message #524 received at 56393 <at> debbugs.gnu.org (full text, mbox):

From: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: gerd.moellmann <at> gmail.com, larsi <at> gnus.org, 56393 <at> debbugs.gnu.org
Subject: Re: bug#56393: Actually fix the long lines display bug
Date: Tue, 19 Jul 2022 13:42:26 +0000
>
> So you want to call the loop only when the buffer changed by two or more 
> characters?  Did you try something like
>
>  MODIFF > UNCHANGED_MODIFIED + 1
>
> ?  (This could be optimized further to use a margin larger that 1.)
>

That doesn't work alas, otherwise I would have used that of course. 
After C-u 100000 a, MODIFF - UNCHANGED_MODIFIED == 1 in a buffer without 
fontification and == 2 in a buffer with fontification, which does what it 
promises: it tells you that the buffer has been changed, but not how much.

I pushed an improved version of the heuristic, which uses both MODIFF / 
UNCHANGED_MODIFIED (to catch editing operations like M-% C-q C-j RET SPC 
RET) and the buffer size to decide whether a new detection should be 
performed.




This bug report was last modified 3 years and 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.