From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#61215: 29.0.60; font-lock broken in diff-mode with long lines Date: Mon, 27 Feb 2023 19:23:11 +0000 Message-ID: <9ac9271f1e747b4a1e20@heytings.org> References: <86lelh6yhq.fsf_-_@mail.linkov.net> <83cz6tz12b.fsf@gnu.org> <86o7qcf2x5.fsf@mail.linkov.net> <83a61vx0jo.fsf@gnu.org> <86bkmbfalm.fsf@mail.linkov.net> <83pmarufgi.fsf@gnu.org> <86ilggc6gn.fsf@mail.linkov.net> <83mt5sq7nr.fsf@gnu.org> <86edr2davu.fsf@mail.linkov.net> <83lelapsvj.fsf@gnu.org> <86o7pfc91a.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34222"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 61215@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 27 20:24:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pWj6k-0008dQ-Ai for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Feb 2023 20:24:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWj6U-0002Z0-AI; Mon, 27 Feb 2023 14:24:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWj6R-0002YX-RJ for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 14:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWj6Q-0001g7-Pv for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 14:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWj6Q-0006V8-48 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2023 14:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2023 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61215 X-GNU-PR-Package: emacs Original-Received: via spool by 61215-submit@debbugs.gnu.org id=B61215.167752579724916 (code B ref 61215); Mon, 27 Feb 2023 19:24:02 +0000 Original-Received: (at 61215) by debbugs.gnu.org; 27 Feb 2023 19:23:17 +0000 Original-Received: from localhost ([127.0.0.1]:48862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWj5g-0006To-W2 for submit@debbugs.gnu.org; Mon, 27 Feb 2023 14:23:17 -0500 Original-Received: from heytings.org ([95.142.160.155]:47664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWj5c-0006Tc-TC for 61215@debbugs.gnu.org; Mon, 27 Feb 2023 14:23:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1677525791; bh=a9bFI8U/oCao+KkfwcXdbgA83jfSneoTdYUB+kzHyQw=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=hjJLTtpEZhpOfWP+hdlk0bdijt1wzkysTqY101Fzy9J7G81YPS3TlIsfwNxhTmrhG DbOhHL1DO9YWQgtTrmCKh+SA+wDqeV++U2kIDiQAmDWr8IK/+m7tk7u6SAWRi+/jWa A8LTdN2I1fmv1lmrcZ9wj29GKAEobxyAkFCD5l5GWKJ08V6sCbgBj1NyL5CSEzHEKu 2nc4jiUUJefxESjHCKmmM7L6WTbiOhJ46QMMDTwvmq21UNDzb4Pzei1R/5mHk4eXyD JCEmohMnWY4kisBjXSHvlcKjgmOYcCWArVFlriBlVYRhTbtx2a3wgUdpRRYtp77v6W 2W22hDgCQeDzQ== In-Reply-To: <86o7pfc91a.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256904 Archived-At: >>> 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.