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: Thu, 30 Mar 2023 23:22:20 +0000 Message-ID: References: <86lelh6yhq.fsf_-_@mail.linkov.net> <83cz6tz12b.fsf@gnu.org> <86o7qcf2x5.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="fhsuVrtZ2a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37889"; 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 Fri Mar 31 01:23:27 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 1pi1c7-0009g7-Q5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Mar 2023 01:23:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pi1bk-0008EU-Hx; Thu, 30 Mar 2023 19:23:04 -0400 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 1pi1bj-0008E5-0x for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 19:23:03 -0400 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 1pi1bi-0005DP-PR for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 19:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pi1bi-0008RE-BJ for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 19:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2023 23:23: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.168021854432381 (code B ref 61215); Thu, 30 Mar 2023 23:23:02 +0000 Original-Received: (at 61215) by debbugs.gnu.org; 30 Mar 2023 23:22:24 +0000 Original-Received: from localhost ([127.0.0.1]:59850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pi1b6-0008QB-2p for submit@debbugs.gnu.org; Thu, 30 Mar 2023 19:22:24 -0400 Original-Received: from heytings.org ([95.142.160.155]:32768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pi1b4-0008Q3-5E for 61215@debbugs.gnu.org; Thu, 30 Mar 2023 19:22:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1680218540; bh=FkeuJqKWZIiLybm7OvKRS2RZeIrZYRBgqVJDe5ZluSY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=K7a77S1YxpoSodHu4awekxDPQeNUjNpJF4A/1WVdbtnsCQGAnSTDzDnmQdmUkdw1O /vQj7JmazF4uMBDY6VYCb8QbfAJlcSZ9kSod7Soj9HgBQyrk0o82/8DZuVY6qkd34h nEwqzIkZnQ3UTII8/fatXqJ+XP9hKnC3snX2VIGkl9fe2/cuvdspZyVKxlnBVceUqg AF2qcT8Dl6Vt8V19N9dtgJwG5ZhLypmJAgggIQqUR8v3njVRM49alT6NIIVfzGI9T8 OqngVW4TzzmNeXp8PNGhXPof7kWs9JxkkTuLCSHQKXoSvm5OPaDLmXfGqs8/rCByHk 3/bmn3a2ngozw== In-Reply-To: <86o7qcf2x5.fsf@mail.linkov.net> Content-ID: 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:258952 Archived-At: --fhsuVrtZ2a Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: > > 0. emacs -Q > 1. Set debug-on-error and backtrace-on-redisplay-error to t > 2. Create a commit with some diff hunks in a prog mode at the beginning, = and a single-line 1MB file added at the end; > 3. From *vc-change-log* type `d' on that commit that opens *vc-diff* buff= er > 4. Scroll the *vc-diff* buffer > > It displays an error in the *Warning* buffer: > > =E2=9B=94 Warning (error): Error in a redisplay Lisp hook. See buffer *= Redisplay_trace* > Sorry for the (very!) late reply. I tried to reproduce that issue with Emacs 29 (at 59f66ea302). I used the= =20 "a.xml" file from bug#61514, which can be recreated with the following=20 short Python script: #!/usr/bin/python3 f =3D open("a.xml", "w") f.write('\n') I did, in the Emacs repository: echo README >> README echo CONTRIBUTE >> CONTRIBUTE echo INSTALL >> INSTALL git add a.xml git commit -a -m commit =2E/src/emacs -Q --eval '(setq debug-on-error t backtrace-on-redisplay-erro= r t)' C-x v l d At that point there are no errors, and the a.xml hunk is correctly=20 fontified. Now if I do: q d then the errors you mention above appear (and the a.xml hunk is not=20 correctly fontified anymore). If I manually kill the *vc-diff* buffer,=20 they disappear again. Is this also what you see? --fhsuVrtZ2a--