From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to apply (multi file) patches conveniently Date: Tue, 07 Feb 2017 17:48:05 +0100 Message-ID: <87zihyt0ai.fsf@drachen> References: <87efzb5xgl.fsf@drachen> <83fujr7216.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486486123 9069 195.159.176.226 (7 Feb 2017 16:48:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 16:48:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 17:48:38 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb8wY-0002BB-B6 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 17:48:38 +0100 Original-Received: from localhost ([::1]:55316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb8we-000471-3c for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 11:48:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb8wB-00046l-N7 for help-gnu-emacs@gnu.org; Tue, 07 Feb 2017 11:48:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb8wA-0001ZV-KK for help-gnu-emacs@gnu.org; Tue, 07 Feb 2017 11:48:15 -0500 Original-Received: from mout.web.de ([212.227.17.11]:64812) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb8w4-0001U6-Qg; Tue, 07 Feb 2017 11:48:09 -0500 Original-Received: from drachen.dragon ([88.67.111.141]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MS290-1czmGq1Wf4-00TE0J; Tue, 07 Feb 2017 17:48:06 +0100 In-Reply-To: <83fujr7216.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 06 Feb 2017 17:49:09 +0200") X-Provags-ID: V03:K0:/NuStMvTNLl+OOPRQKopf/S1qDndtGlQ+pc1DF2tzBQSa0qeOw2 FGofJgOBAhFaNIebigJRcNrp8jbk/qiWOQCEBqahPT/V7bd0pzGRB9Et7xRtjxVP6yOY1j4 hP1P1L8NbifilfE6eColD+Tq81GIAyiKG/6FA6zZ6NYI9KfT8X8ANHgKUCIMI6eRMyqdSkl V0mhwOqa88/K7+EusJXRA== X-UI-Out-Filterresults: notjunk:1;V01:K0:uxJnaeVgLlQ=:9rFoTS9H7Q5I2Bv+HFA4u0 Ohl/CiZEbCgsTTlfz2ZeGfvT722hL8occ70qIavn/V2qjwkbN5+NKMYsJbgDkcZl5BU4C4YEU vV4eg85i6wPEcjpDyQWEIT/F6SlqHdowxzAio22vtw8CZQ0QMSsNwJGIy1ZU7kkjvONFK10it NNqQlTaiCZuK4xWppUDR87CN8BNJ4MD01jDNhlqeB2Ew7rYo6N9rgGfBiKQ8sqC4YNVUu/BHy a3eT+0H7z/O5KCMVgMjP9egVEM9ks4oezMrYSdafrmC6WUR8Eq3e7JmHu+z3M83CPkT9nK5sC QeJBNz2L4iI5+Pw2TKzZUGn2imhKcSEnwatFMqZtBbgVMEIcCMDUwFCwfw0GQTz7NJyYlSXkg Eo2fsUx6qpBVUM1zcyu/K0zGtCG7n8IM2dCo7nYYZZgWuTUzBcmATyfnsrb516A7rjuKEyeHk qqPNi0bLja+gHUyUYbq+vlUK7WfsisbHQoaKFtPpeOOzGY20RpEdTp+cQkByXPOnHq2pZFmcK E+qKJcC4qYERrxDkGxJ8vRd2chlAkRU8TCDaYy8J9ju/SlxRW/R594RnR4hUW0bT9gMuel12e idcXRtlFwvjR7V3mUmAWIG8Sth6BXmpuFUFc0i9g5YH+LgV3ojbtb3sYuqvlTgga7kXBnmjOo GzDeuBsMSGondWfKjSNcSIqNg7J5sjCCXMFcRPWwN8zAPt0qO/1t4oPBxZMyyE86cYS+NFGTF J6/u1WOwhOkrHifrQ0VLaZydaF2Wz6KaR2k1IcWeUyzQjxxqTU8KYWnOmHM7PtACRVG3rfj9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112266 Archived-At: Eli Zaretskii writes: > I just mark the entire patch in Emacs, then invoke "M-|", and type > > patch -d /the/root/directory/of/the/project -pN > > where N should be chosen by counting the slashes that you will want > Patch to remove before looking for files relative to that root > directory. For patches produced by "git diff" etc., N is typically 1. Ok thanks, then for now, I'll use a little command that is doing that for me (funnily it seems to be impossible to type M-| with a German keyboard, not even in X, because you need to hit Meta and AltGr and < at the same time, and that doesn't generate an event at all). And I guess epatch just makes nonsense and should be fixed. Thanks, Michael.