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


View this message in rfc822 format

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 60660 <at> debbugs.gnu.org
Subject: bug#60660: Support git-formatted patches in diff-mode
Date: Tue, 5 Sep 2023 16:30:46 -0700
Juri Linkov <juri <at> linkov.net> writes:

>>> This patch for emacs-29 fixes this bug, and the rest of fontification
>>> could be implemented in master.
>>
>> OK for the emacs-29 branch
>
> Pushed to the emacs-29 branch.

So is there more to do here, or should this bug be closed?  I'm not sure
if it's still needed to track the below.

>> (although I'm surprised that diff-beginning-of-hunk can return
>> a position that is not before point).
>
> Indeed, strange to see this in 'diff-beginning-of-hunk':
>
>       (cond ...
>         ((re-search-backward regexp nil t)) ; In the middle of a hunk.
>         ((re-search-forward regexp nil t) ; At first hunk header.
>                     =======
>
> Need to experiment more with this in master.




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.