all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Patch parser
@ 2014-12-09 19:20 Lars Magne Ingebrigtsen
  2014-12-09 22:11 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2014-12-09 19:20 UTC (permalink / raw)
  To: emacs-devel

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-09 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 19:20 Patch parser Lars Magne Ingebrigtsen
2014-12-09 22:11 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.