From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Patch parser Date: Tue, 09 Dec 2014 17:11:10 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418163097 23369 80.91.229.3 (9 Dec 2014 22:11:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Dec 2014 22:11:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 09 23:11:32 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 1XyT0D-00060k-Sa for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 23:11:30 +0100 Original-Received: from localhost ([::1]:42674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyT0D-0007EH-DV for ged-emacs-devel@m.gmane.org; Tue, 09 Dec 2014 17:11:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyT03-00076R-Bk for emacs-devel@gnu.org; Tue, 09 Dec 2014 17:11:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XySzv-0006ba-K7 for emacs-devel@gnu.org; Tue, 09 Dec 2014 17:11:19 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:56387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XySzv-0006bW-HO for emacs-devel@gnu.org; Tue, 09 Dec 2014 17:11:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au8IAOwQflQXW5Ml/2dsb2JhbABbgweDYIVawjuCaAKBJRYBAQEBAQF8hAMBAQMBfgsLDScSFBiIewnWWSyQdhaEMgWLAZhxjTWEGSGCdwEBAQ X-IPAS-Result: Au8IAOwQflQXW5Ml/2dsb2JhbABbgweDYIVawjuCaAKBJRYBAQEBAQF8hAMBAQMBfgsLDScSFBiIewnWWSyQdhaEMgWLAZhxjTWEGSGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="100014123" Original-Received: from unknown (HELO pastel.home) ([23.91.147.37]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 09 Dec 2014 17:11:11 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D48C572BD; Tue, 9 Dec 2014 17:11:10 -0500 (EST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 09 Dec 2014 20:20:38 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:179605 Archived-At: > Does Emacs have a patch parser? I think the closest we have is the code in diff-mode. > *** 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... FWIW, I currently use M-| M-p which (almost) always brings me to a command like "cd ~/.../emacs/emacs-24; patch -p1", and it's really not much work for me to adjust the -p1 to -p0 at the same time as I check whether I want to change the "emacs-24" into a "master". Stefan