[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#61215: 29.0.60; font-lock broken in diff-mode with long lines
From: |
Juri Linkov |
Subject: |
bug#61215: 29.0.60; font-lock broken in diff-mode with long lines |
Date: |
Mon, 27 Feb 2023 20:28:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> 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?
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, (continued)
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Eli Zaretskii, 2023/02/01
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Juri Linkov, 2023/02/02
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Eli Zaretskii, 2023/02/02
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Juri Linkov, 2023/02/03
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Eli Zaretskii, 2023/02/03
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Juri Linkov, 2023/02/05
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Eli Zaretskii, 2023/02/05
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Juri Linkov, 2023/02/06
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Eli Zaretskii, 2023/02/06
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Gregory Heytings, 2023/02/06
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines,
Juri Linkov <=
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Eli Zaretskii, 2023/02/27
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Gregory Heytings, 2023/02/27
- bug#61215: 29.0.60; font-lock broken in diff-mode with long lines, Gregory Heytings, 2023/02/27