GNU bug report logs - #28434
25.2; Final "\ No newline at end of file" breaks Emacs patch handling.

Previous Next

Package: emacs;

Reported by: Oleksandr Gavenko <gavenkoa <at> gmail.com>

Date: Tue, 12 Sep 2017 18:02:01 UTC

Severity: minor

Found in version 25.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Oleksandr Gavenko <gavenkoa <at> gmail.com>
Cc: 28434 <at> debbugs.gnu.org
Subject: bug#28434: 25.2; Final "\ No newline at end of file" breaks Emacs patch handling.
Date: Tue, 23 Aug 2022 11:36:15 +0200
Oleksandr Gavenko <gavenkoa <at> gmail.com> writes:

> It happens with a lot of tools (diff/hg/git). If file doesn't end on new line
> diff file has:
>
>   \ No newline at end of file
>
> C-c C-c (diff-goto-source) on that hunk says:
>
>   Hunk text not found
>
> C-c C-a (diff-apply-hunk) says:
>
>   diff-apply-hunk: Can’t find the text to patch

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

This has been fixed in Emacs 28.1, as far as I can tell.




This bug report was last modified 2 years and 359 days ago.

Previous Next


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