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: Fri, 31 Mar 2023 07:40:01 +0000 Message-ID: <58158ae4985b80a8af9a@heytings.org> References: <86lelh6yhq.fsf_-_@mail.linkov.net> <83cz6tz12b.fsf@gnu.org> <86o7qcf2x5.fsf@mail.linkov.net> <861ql51jl2.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="29227"; 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 09:41:20 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 1pi9Nw-0007Ql-71 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 31 Mar 2023 09:41:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pi9Nl-0003hT-4P; Fri, 31 Mar 2023 03:41:09 -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 1pi9Nf-0003gz-LR for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 03:41: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 1pi9Nf-0006tw-0I for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 03:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pi9Ne-0004iA-HH for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2023 03:41: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: Fri, 31 Mar 2023 07:41: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.168024840418027 (code B ref 61215); Fri, 31 Mar 2023 07:41:02 +0000 Original-Received: (at 61215) by debbugs.gnu.org; 31 Mar 2023 07:40:04 +0000 Original-Received: from localhost ([127.0.0.1]:60276 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pi9Mh-0004gf-Pt for submit@debbugs.gnu.org; Fri, 31 Mar 2023 03:40:04 -0400 Original-Received: from heytings.org ([95.142.160.155]:33238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pi9Mg-0004gI-FL for 61215@debbugs.gnu.org; Fri, 31 Mar 2023 03:40:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1680248401; bh=8hwfVHFLAWMM5oTaWvw1Nd2DSFotpsFbSKTcyABIrAY=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=1W5KI7bgV+vUw5nNBJ71gt3t8z+2FkCm26AoevVjgg6l0IM5BQMZmlhH0ptqK8KL4 3yQKurq+aW3svnfMG1Fhj7knI69JDJ9l+BktOTU7JdFZCq+jdFaIr2ttm5ntnr9H8B AFkr5vJqKmAZv6azI5TPOcrjf9M5T5vSIitZnGgfGKTPW3YEIz6bTi1tEOcfJK6zLY YP1+eOcZXW9AtkzMXEOAcxjzrFcdwG4Ru4baOnkg8WuSVabXhvHwlSGgCEDjps07ja 15KH4VHQ9F/BeXEO4q0rpYzKES9W9H1CgLUfyx6eG/gaJ3Ce2iksLGEPRBnpUHdq56 FvDXFvT9RF/Mw== In-Reply-To: <861ql51jl2.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:258978 Archived-At: > > Actually, these files can't expose the problem. I suggest to use a mode > with complex font-lock rules for syntax highlighting. I tested with a > few of 1-char edits in a few places inside an .el file. > Okay, so I tried again with: sed -i 's/(signal /(signal /' lisp/subr.el lisp/simple.el (Note the two spaces after "signal".) >> git add a.xml > > The diff will output the file name a.xml at the beginning, but better to > output it after the file with changes. The complete diff output should > look like this: first a few diff hunks each with 1-line change from an > .el file with syntax fontification. Then at the end of the screen the > huge file added in the same commit. > With my previous recipe the added file was added at the end, but for some reason after the command above it does not. I renamed the a.xml file into z.xml, and now it does again. >> git commit -a -m commit >> ./src/emacs -Q --eval '(setq debug-on-error t backtrace-on-redisplay-error t)' >> C-x v l >> d > > Not sure if this shows diffs only from one file. More reliable would be > to use 'C-x v L d' to show a multi-file commit. > Okay, with the modifications you indicated above, I can now reproduce the bug, with both C-x v l d and C-x v L RET d.