GNU bug report logs - #60660
Support git-formatted patches in diff-mode

Previous Next

Package: emacs;

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

Date: Sun, 8 Jan 2023 18:30:02 UTC

Severity: normal

Tags: patch

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 60660 <at> debbugs.gnu.org
Subject: Re: bug#60660: Support git-formatted patches in diff-mode
Date: Sun, 08 Jan 2023 20:51:22 +0200
> From: Juri Linkov <juri <at> linkov.net>
> Date: Sun, 08 Jan 2023 20:21:23 +0200
> 
> Currently, there is a lot of misfontification in diff-mode visiting a git patch.
> Two dashes in the signature separator are highlighted with the diff-removed face
> (the existing diff-prev-line-if-patch-separator is used for something else).
> Three dashes in the git patch header that separate a list of affected files
> are highlighted with the diff-hunk-header face, etc.
> 
> But the worst case that raises an error is when an exclamation mark is used
> at the beginning of the line in the git patch message.
> 
> This patch for emacs-29 fixes this bug, and the rest of fontification
> could be implemented in master.

OK for the emacs-29 branch (although I'm surprised that
diff-beginning-of-hunk can return a position that is not before
point).

Thanks.




This bug report was last modified 1 year and 188 days ago.

Previous Next


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