--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 E8151431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 7 Oct 2013 15:33:33 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 v1DiBQpOOtGy for <notmuch@notmuchmail.org>;\r
+ Mon, 7 Oct 2013 15:33:27 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu\r
+ [18.9.25.12])\r
+ by olra.theworths.org (Postfix) with ESMTP id 8E667431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 7 Oct 2013 15:33:27 -0700 (PDT)\r
+X-AuditID: 1209190c-b7fd38e0000009aa-d6-525336b6c2ae\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+ by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id E3.41.02474.6B633525; Mon, 7 Oct 2013 18:33:27 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+ by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r97MXPe8024733; \r
+ Mon, 7 Oct 2013 18:33:26 -0400\r
+Received: from drake.dyndns.org (26-4-172.dynamic.csail.mit.edu [18.26.4.172])\r
+ (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r97MXNI2028507\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Mon, 7 Oct 2013 18:33:25 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1VTJMh-0006bp-LQ; Mon, 07 Oct 2013 18:33:23 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 05/11] emacs: Move `notmuch-call-notmuch-process' to\r
+ notmuch-lib\r
+Date: Mon, 7 Oct 2013 18:33:15 -0400\r
+Message-Id: <1381185201-25197-6-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.8.4.rc3\r
+In-Reply-To: <1381185201-25197-1-git-send-email-amdragon@mit.edu>\r
+References: <1381185201-25197-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsUixG6nrrvdLDjI4NNpFovrN2cyOzB6PFt1\r
+ izmAMYrLJiU1J7MstUjfLoEr41zzeaaCyUIVP1vfsDcwtvJ3MXJySAiYSFxee48VwhaTuHBv\r
+ PRuILSSwj1Fiw5zMLkYuIHsDo8SECXtZIJzDTBLbp9xhhXDmMkqs2/iSBaSFTUBDYtv+5Ywg\r
+ toiAtMTOu7OBijg4mAXUJP50qYCEhQUCJCZ8X8oOYrMIqEosmv8HzOYVcJC40tsAdYWSxMJT\r
+ 28BsTgFHiSUbL0Jd5CAxd/8i1gmM/AsYGVYxyqbkVunmJmbmFKcm6xYnJ+blpRbpGurlZpbo\r
+ paaUbmIEBQ2nJM8OxjcHlQ4xCnAwKvHwChwOChJiTSwrrsw9xCjJwaQkynvGNDhIiC8pP6Uy\r
+ I7E4I76oNCe1+BCjBAezkgivgBFQjjclsbIqtSgfJiXNwaIkznuTwz5ISCA9sSQ1OzW1ILUI\r
+ JivDwaEkwRsGMlSwKDU9tSItM6cEIc3EwQkynAdo+AKQGt7igsTc4sx0iPwpRkUpcd7ZIAkB\r
+ kERGaR5cLyyqXzGKA70izLsVpIoHmBDgul8BDWYCGqzLHggyuCQRISXVwJgroVm5x+7EHrPX\r
+ d83Fl/32nW+Zc1vlhd7za8w31G/ONovo2yoYHsXa+vnJh7PrUvtF66/MWPf5/uXrkxqqy/lN\r
+ Lmdx77N6wxyy4//+1O1fD0yLTXY+9kT2xNfJDoatcwz2Xt+ZOL/5qV+KVUb4k591cQ8Y56rq\r
+ 6e5qv1ac5n2xZI+5aZWBxUklluKMREMt5qLiRADJr4NPxQIAAA==\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: Mon, 07 Oct 2013 22:33:34 -0000\r
+\r
+Previously, this was in notmuch.el, but all of the other notmuch call\r
+wrappers were in notmuch-lib.el. Move `notmuch-call-notmuch-process'\r
+to live with its friends. This happens to fix a missing dependency\r
+from notmuch-tag.el, which required notmuch-lib, but not notmuch.\r
+---\r
+ emacs/notmuch-lib.el | 11 +++++++++++\r
+ emacs/notmuch.el | 11 -----------\r
+ 2 files changed, 11 insertions(+), 11 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
+index 58f3313..4e0604e 100644\r
+--- a/emacs/notmuch-lib.el\r
++++ b/emacs/notmuch-lib.el\r
+@@ -534,6 +534,17 @@ You may need to restart Emacs or upgrade your notmuch package."))\r
+ ;; `notmuch-logged-error' does not return.\r
+ ))))\r
+ \r
++(defun notmuch-call-notmuch-process (&rest args)\r
++ "Synchronously invoke \"notmuch\" with the given list of arguments.\r
++\r
++If notmuch exits with a non-zero status, output from the process\r
++will appear in a buffer named \"*Notmuch errors*\" and an error\r
++will be signaled."\r
++ (with-temp-buffer\r
++ (let ((status (apply #'call-process notmuch-command nil t nil args)))\r
++ (notmuch-check-exit-status status (cons notmuch-command args)\r
++ (buffer-string)))))\r
++\r
+ (defun notmuch-call-notmuch-sexp (&rest args)\r
+ "Invoke `notmuch-command' with ARGS and return the parsed S-exp output.\r
+ \r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 0ff248b..2c7678d 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -511,17 +511,6 @@ If BARE is set then do not prefix with \"thread:\""\r
+ (let ((message-id (notmuch-search-find-thread-id)))\r
+ (notmuch-mua-new-reply message-id prompt-for-sender nil)))\r
+ \r
+-(defun notmuch-call-notmuch-process (&rest args)\r
+- "Synchronously invoke \"notmuch\" with the given list of arguments.\r
+-\r
+-If notmuch exits with a non-zero status, output from the process\r
+-will appear in a buffer named \"*Notmuch errors*\" and an error\r
+-will be signaled."\r
+- (with-temp-buffer\r
+- (let ((status (apply #'call-process notmuch-command nil t nil args)))\r
+- (notmuch-check-exit-status status (cons notmuch-command args)\r
+- (buffer-string)))))\r
+-\r
+ (defun notmuch-search-set-tags (tags &optional pos)\r
+ (let ((new-result (plist-put (notmuch-search-get-result pos) :tags tags)))\r
+ (notmuch-search-update-result new-result pos)))\r
+-- \r
+1.8.4.rc3\r
+\r