[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lars Magne Ingebrigtsen
Tue, 09 Dec 2014 20:20:38 +0100
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)
Does Emacs have a patch parser? I mean, something that would take a
region of text and return all the pertinent parts of the patch it finds
I've been digging through `diff-mode', and it's very geared towards
interactive use. But I may well be missing something there.
My use case here is that I want to find out where to apply a patch
automatically for my new Super Maintainer Mode thing.
*** lisp/international/characters.el 2013-01-01 21:37:17.000000000 +0100
--- lisp/international/characters-fixc1.el 2013-02-18 17:58:29.103018508
should obviously be run from <top>/lisp with -p1 (or in <top> with -p0),
while this is in <top> with -p1:
It's not rocket surgery to write this myself, but if it already exists...
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Patch parser,
Lars Magne Ingebrigtsen <=