From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:aacc::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id x/bCNUR6sWH/JAAAsNZ9tg (envelope-from ) for ; Thu, 09 Dec 2021 03:38:44 +0000 Received: from out2.migadu.com ([2001:41d0:2:aacc::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QPDGMER6sWFjQgAAB5/wlQ (envelope-from ) for ; Thu, 09 Dec 2021 03:38:44 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1639021124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xxnqEvC2coNfe1r7/gdl+O8LhfGGQ1SmqATvN5rhL0w=; b=Uz+kNUEsIhphovso3bvYS+twp4sC3QddFqdL2ZzEQCMI4PKr++FAY3OCYj4XpynS1/UCjK dzDXtCQtin4ESWvXwmgsKHWE4+yxUmVEXcH97aKaTAaTy0im3ApIDPa2qgLM1Q/tFltaEY g5Dem8nANIwLWrHXZwAv0BxMEKYDAT9hc3aBWFaz7VUF2tdn0gCNWXE7tFpIQiX853iaRz JTtSORvYttio7hh2cAKCvkjXr/g1PnZs7VBj0B7AWJE5/9gXGlcYKjDK93HeiZtGaNealS /cW6XyxVtWmdcjW9kGSfxBjmF8H8p1zRG5oLzdy6PVrelVIfwjm8gfaQWaGv8A== From: Kyle Meyer To: sourcehut@relevant-information.com Cc: piem@inbox.kyleam.com Subject: Re: Adding support for editing patches before applying them In-Reply-To: <20211208160142.84085-1-sourcehut@relevant-information.com> References: <20211208160142.84085-1-sourcehut@relevant-information.com> Date: Wed, 08 Dec 2021 22:38:36 -0500 Message-ID: <87sfv2fnwj.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: kyleam.com X-TUID: XW9sipS7GdI7 sourcehut@relevant-information.com writes: > Hello, > > Sometimes it is necessary to edit patches before applying them. These changes > allows you to do that for notmuch only by grabbing the mbox string from an > *notmuch-mbox-* buffer if it exists, where is the thread > ID of the current notmuch message. > > I've additionally included `piem-notmuch-show-view-mbox-message' which is a fork > of `notmuch-show-view-raw-message' that uses "--format=mbox" instead. It also > supports opening the entire thread via a prefix argument so that you can apply > the entire thread. Interesting, thanks for the patch. There are definitely times when I dump a message (or sometimes the b4-am-processed thread) to a file to edit before applying, so I could see myself using something like this. (I tend to do that if something like a filename in the patch needs to be tweaked. For most edits, I just touch up with git commands _after_ applying.)