GNU bug report logs -
#37395
Diff-mode doesn't take into account patch-separators as produced by git-format-patch
Previous Next
Reported by: Konstantin Kharlamov <hi-angel <at> yandex.ru>
Date: Thu, 12 Sep 2019 21:34:02 UTC
Severity: normal
Tags: fixed
Fixed in version 27.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
As title says. As a follow-up to this report I'm gonna send a fix to
this problem.
Observable result of the problem is that Emacs thinks `-- ` patch line
is a "deleted line", whereas it actually is end of the patch.
The follow-up patch I successfully used to edit patch-series of 12
patches to libinput
https://gitlab.freedesktop.org/libinput/libinput/merge_requests/288#note_223871
# Steps to reproduce
1. In terminal, go to Emacs git repository
2. Execute `git format-patch -1 --stdout > 1.patch`
3. Open 1.patch in Emacs (diff-mode should automatically get enabled)
4. Replace at the beginning of a "deleted line" the `-` with space ` `.
## Expected
The 4-digit header (which looks like `@@ -561,7 +569,8`) should have
first 2 digits (561 and 7 in example) unchanged.
## Actual
The 4-digit header increases count of 2nd digit (7 in example) by one.
This bug report was last modified 5 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.