GNU bug report logs - #61215
29.0.60; font-lock broken in diff-mode with long lines

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Wed, 1 Feb 2023 18:21:01 UTC

Severity: normal

Found in version 29.0.60

Full log


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

From: Gregory Heytings <gregory <at> heytings.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 61215 <at> debbugs.gnu.org
Subject: Re: bug#61215: 29.0.60; font-lock broken in diff-mode with long lines
Date: Mon, 27 Feb 2023 19:25:03 +0000
>>>> After debugging I discovered that the problem is not caused by 
>>>> font-lock in diff-mode.  The problem is in 
>>>> easy-mmode-define-navigation. diff-mode uses it to navigate diff 
>>>> hunks.  It supports such a feature that when the user narrowed the 
>>>> diff buffer, it puts narrowing back after moving to the next hunk. 
>>>> But this fails when the diff buffer is narrowed automatically by 
>>>> long-line-optimizations.  If there is no way to distinguish whether 
>>>> the narrowing is automatic by long-lines or manual by the user, this 
>>>> patch fixes the problem.  It works without errors, and even 
>>>> highlights first 250000 characters of the long line:
>>> 
>>> Thanks.
>>> 
>>> Maybe Gregory (CC'ed) can help here and tell whether there's a better 
>>> solution.
>> 
>> It seems there is no better solution?
>
> I still have to look at this, it's on my (short time) TODO list.
>

I meant "short term", of course.





This bug report was last modified 2 years and 76 days ago.

Previous Next


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