[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60660: Support git-formatted patches in diff-mode
From: |
Juri Linkov |
Subject: |
bug#60660: Support git-formatted patches in diff-mode |
Date: |
Mon, 09 Jan 2023 09:54:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> 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.
> (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.