Re: [PATCH] emacs: Helpers for notmuch developers.
authorDavid Bremner <david@tethera.net>
Fri, 6 Jan 2012 03:39:30 +0000 (23:39 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:39 +0000 (09:41 -0800)
85/33d4646db2adee36219d26a6c59a41738fa184 [new file with mode: 0644]

diff --git a/85/33d4646db2adee36219d26a6c59a41738fa184 b/85/33d4646db2adee36219d26a6c59a41738fa184
new file mode 100644 (file)
index 0000000..4650fe0
--- /dev/null
@@ -0,0 +1,98 @@
+Return-Path: <bremner@unb.ca>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 708D1429E33\r
+       for <notmuch@notmuchmail.org>; Thu,  5 Jan 2012 19:39:34 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id FH+2Sx6AIlVY for <notmuch@notmuchmail.org>;\r
+       Thu,  5 Jan 2012 19:39:33 -0800 (PST)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id C704A429E32\r
+       for <notmuch@notmuchmail.org>; Thu,  5 Jan 2012 19:39:33 -0800 (PST)\r
+Received: from zancas.localnet\r
+       (fctnnbsc36w-156034072155.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+       [156.34.72.155]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id q063dUh8000781\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Thu, 5 Jan 2012 23:39:31 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.77)\r
+       (envelope-from <bremner@unb.ca>)\r
+       id 1Rj0eQ-0006sS-EU; Thu, 05 Jan 2012 23:39:30 -0400\r
+From: David Bremner <david@tethera.net>\r
+To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: Helpers for notmuch developers.\r
+In-Reply-To: <1325685678-12710-1-git-send-email-dme@dme.org>\r
+References: <1325685678-12710-1-git-send-email-dme@dme.org>\r
+User-Agent: Notmuch/0.10.2+167~gadf1058 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Thu, 05 Jan 2012 23:39:30 -0400\r
+Message-ID: <878vllxzwt.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 06 Jan 2012 03:39:34 -0000\r
+\r
+On Wed,  4 Jan 2012 14:01:18 +0000, David Edmondson <dme@dme.org> wrote:\r
+> ---\r
+> \r
+> I've been using this for a few days and decided to share it to get\r
+> feedback. Reviewing patches can be tedious, so I tried to make things\r
+> a little simpler.\r
+> \r
+\r
+I didn't have a very thorough look at the code, but I like the\r
+functionality. Especially hitting q a few times from magit and being in\r
+the right place to reply.\r
+\r
+> General management (i.e. keeping up to date) of the repository it uses\r
+> is your responsibility, as is cleaning out old branches. You can, of\r
+> course, just delete the temporary repository after using it - the code\r
+> will re-create it next time.\r
+\r
+maybe the branches could be under some namespace that makes this easy?\r
+\r
+> +(defvar notmuch-dev-temporary-repository-name (concat "notmuch-dev-" (user-login-name))\r
+> +  "The name of the temporary repository.")\r
+\r
+Do we care about security at all in this context? I'm always a bit\r
+nervous about creating predictably named files/directories in publicly\r
+writable places.\r
+\r
+> +  ;; Causes us to switch to the magit buffer - is that unfortunate in\r
+> +  ;; some situations?\r
+> +  (magit-status notmuch-dev-temporary-repository-path))\r
+\r
+I found it to be a pleasant surprise.\r
+\r
+> +      (shell-command\r
+> +       (concat\r
+> +    notmuch-command " show --format=mbox " (shell-quote-argument search-terms)\r
+> +    " | "\r
+> +    "git am --quiet"))\r
+> +\r
+\r
+Hmm. A knee jerk reaction is not to like this, like seeing system in C\r
+code. But I don't have a better solution off hand.\r
+\r
+d\r