From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nick Dokos Newsgroups: gmane.emacs.help Subject: Re: How to apply (multi file) patches conveniently Date: Tue, 07 Feb 2017 12:19:58 -0500 Message-ID: <87r3393old.fsf@gmail.com> References: <87efzb5xgl.fsf@drachen> <83fujr7216.fsf@gnu.org> <87zihyt0ai.fsf@drachen> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486488058 18136 195.159.176.226 (7 Feb 2017 17:20:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 17:20:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 18:20:53 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 1cb9Rk-0004Rk-UR for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 18:20:53 +0100 Original-Received: from localhost ([::1]:55581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb9Rq-0008KG-Fz for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Feb 2017 12:20:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb9R3-0008FK-RF for help-gnu-emacs@gnu.org; Tue, 07 Feb 2017 12:20:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb9R0-0000lQ-LH for help-gnu-emacs@gnu.org; Tue, 07 Feb 2017 12:20:09 -0500 Original-Received: from [195.159.176.226] (port=51061 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb9R0-0000ju-FV for help-gnu-emacs@gnu.org; Tue, 07 Feb 2017 12:20:06 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cb9Qr-0001kY-Dp for help-gnu-emacs@gnu.org; Tue, 07 Feb 2017 18:19:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:FozWTwijdnQvwZsMDYeh2HtTJ6U= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:112268 Archived-At: Michael Heerdegen writes: > 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). > M- is a shortcut for ESC- so you could use the latter form, as long as you have an ESC key. -- Nick