From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Patch parser Date: Tue, 09 Dec 2014 20:20:38 +0100 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418152872 18745 80.91.229.3 (9 Dec 2014 19:21:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 19:21:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 09 20:21:06 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XyQLJ-0001hG-5x for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 20:21:05 +0100 Original-Received: from localhost ([::1]:42122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQLI-0003uA-ME for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 14:21:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQLA-0003tO-Kg for emacs-devel@gnu.org; Tue, 09 Dec 2014 14:21:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyQL2-0003iP-Vx for emacs-devel@gnu.org; Tue, 09 Dec 2014 14:20:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyQL2-0003iE-O3 for emacs-devel@gnu.org; Tue, 09 Dec 2014 14:20:48 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XyQL1-0001ZC-Rw for emacs-devel@gnu.org; Tue, 09 Dec 2014 20:20:47 +0100 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Dec 2014 20:20:47 +0100 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Dec 2014 20:20:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX9l3e4ByNkAhLjDjnn HEP7QVndCiwKAAEKIDE4AAACUUlEQVQ4jV2UzXLbIBSFySR6AMmOshZxrXUHzDotl6yVqXgAB5W9 mc7w+j0XsJqpZmyPz8f9O4CEJ/L0HuOQc6a3znsv/KqUEiu5dY3xOuecFrHrSlhLrgWcREd+6Vg3 mwhKryZeod+8eFLKEeS4LSJGrWoiWpfVBqVCjJsQIgYV4wsCvjl7QXrI8bdgAP0TeoKI0sY0HalK gfyHDHSUK3kK4AI5v4aoNSE8LA1APw8yb+g5WnzeiuxFL+d8e4/98aMfIcdL1b0oeQ59f1zJBNsS dd4K1nMa5EmT3bypHXkyFWT5etREajGXJ+cXT+oOstyIyOjgvNUwnNQdJLiPCkE5FFlBGrhFch03 vHHxsh9Nj7R0MLnXDJ7uIEUGj/E6jLSgV28bkHLc3PIxyP4AgKkfAVKtvTmfb3IMVAZcGZTR8yt9 cMaD82VAq0X1JN/op8y3z6laixnFg5yTlLLXylzx+1wIf80p8SmJAUO9o/wznyEGOZ89A1hFq8Mm +rZRDwC/EODQia9PJT9yct5E7dm9nXScKj1/0faHgdz+V6u7L3k6uqaw4ao8IstZylNRdrGAxANu /6kVgJD9ItU/AjZMwioTdIvQXQXs1GL6frqDi7f3VHIa0PN5T6VwTlwBcpqxi6EVctZ1PCADiRAk qwQHqbhbQM8h53vDmvcxl1zjlY/EqYFPOTqRS8iIa4gVh0auMjUwhe85T1gQGhp2YBAyzGlUtYW+ 2A4wKlxdvlxbNW34B+LMwfkEYNvZLdUVcpU12jGgHQTD7xnUn4hfP+4vjiEoccwurPwAAAAASUVO RK5CYII= Mail-Copies-To: never X-Now-Playing: Breathless's _Green To Blue (2)_: "Just For Today" User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:zFonBdV/8PnVwj6GLFQfd32dY6o= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179585 Archived-At: 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 /lisp with -p1 (or in with -p0), while this is in 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