[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch parser
From: |
Lars Magne Ingebrigtsen |
Subject: |
Patch parser |
Date: |
Tue, 09 Dec 2014 20:20:38 +0100 |
User-agent: |
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
there?
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
+0100
should obviously be run from <top>/lisp with -p1 (or in <top> with -p0),
while this is in <top> with -p1:
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
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 <=