From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 53EE1421178 for ; Thu, 24 Oct 2013 08:19:54 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3g2qnhGIjRWc for ; Thu, 24 Oct 2013 08:19:50 -0700 (PDT) Received: from dmz-mailsec-scanner-4.mit.edu (dmz-mailsec-scanner-4.mit.edu [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id 37C91429E52 for ; Thu, 24 Oct 2013 08:19:28 -0700 (PDT) X-AuditID: 1209190f-b7fa08e0000009c6-e0-52693a7f7da6 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id EA.10.02502.F7A39625; Thu, 24 Oct 2013 11:19:27 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r9OFJFie018646; Thu, 24 Oct 2013 11:19:15 -0400 Received: from drake.dyndns.org (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [216.15.114.40]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r9OFJCI1012915 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Thu, 24 Oct 2013 11:19:14 -0400 Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1VZMgq-0006ds-P9; Thu, 24 Oct 2013 11:19:12 -0400 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH v2 05/11] emacs: Move `notmuch-call-notmuch-process' to notmuch-lib Date: Thu, 24 Oct 2013 11:19:05 -0400 Message-Id: <1382627951-25252-6-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1382627951-25252-1-git-send-email-amdragon@mit.edu> References: <1382627951-25252-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCIsWRmVeSWpSXmKPExsUixG6nrltvlRlkcLzDyKJpurPF6rk8Ftdv zmR2YPbYOesuu8et+6/ZPZ6tusUcwBzFZZOSmpNZllqkb5fAlfF59iPmgslCFdN7epkbGFv5 uxg5OSQETCTm3N3NAmGLSVy4t54NxBYS2McoMaejuIuRC8jeyCjx9dg1ZgjnDpPEn1m9rBDO XEaJPasXMYG0sAloSGzbv5wRxBYRkJbYeXc2K4jNLBAtceTyDLCxwgLBEitnvwaaxMHBIqAq cXBVJEiYV8BB4u6B74wQVyhJLDy1DayVU8BR4ufra4wQFzlI/Pp9hmUCI/8CRoZVjLIpuVW6 uYmZOcWpybrFyYl5ealFuiZ6uZkleqkppZsYQYHFKcm/g/HbQaVDjAIcjEo8vBof0oOEWBPL iitzDzFKcjApifLeM80MEuJLyk+pzEgszogvKs1JLT7EKMHBrCTCO00PKMebklhZlVqUD5OS 5mBREue9yWEfJCSQnliSmp2aWpBaBJOV4eBQkuD9ZwnUKFiUmp5akZaZU4KQZuLgBBnOAzRc xgpkeHFBYm5xZjpE/hSjopQ47yWQZgGQREZpHlwvLPJfMYoDvSLM+wGkigeYNOC6XwENZgIa PGVJGsjgkkSElFQDY/FjqbfzuB6by52bq+HEnVQikFCQxLn9Kp+1rnxpR9DZXbciIuNvZISe 5txw9Zcg8+9UXy6Js89/cO+99WRv0rX1krvbatRuHby/aNL3Pz/mWMo4GshavthivIQ7KXjr jhs3eU+3iVrZGi9aPO1u59kPkea5DZ95dGuOm8q9nshcb7/vzNGgQCWW4oxEQy3mouJEABHU xF7XAgAA X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 15:19:54 -0000 Previously, this was in notmuch.el, but all of the other notmuch call wrappers were in notmuch-lib.el. Move `notmuch-call-notmuch-process' to live with its friends. This happens to fix a missing dependency from notmuch-tag.el, which required notmuch-lib, but not notmuch. --- emacs/notmuch-lib.el | 11 +++++++++++ emacs/notmuch.el | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el index 58f3313..4e0604e 100644 --- a/emacs/notmuch-lib.el +++ b/emacs/notmuch-lib.el @@ -534,6 +534,17 @@ You may need to restart Emacs or upgrade your notmuch package.")) ;; `notmuch-logged-error' does not return. )))) +(defun notmuch-call-notmuch-process (&rest args) + "Synchronously invoke \"notmuch\" with the given list of arguments. + +If notmuch exits with a non-zero status, output from the process +will appear in a buffer named \"*Notmuch errors*\" and an error +will be signaled." + (with-temp-buffer + (let ((status (apply #'call-process notmuch-command nil t nil args))) + (notmuch-check-exit-status status (cons notmuch-command args) + (buffer-string))))) + (defun notmuch-call-notmuch-sexp (&rest args) "Invoke `notmuch-command' with ARGS and return the parsed S-exp output. diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 53e9826..496c8ec 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -535,17 +535,6 @@ If BARE is set then do not prefix with \"thread:\"" (let ((message-id (notmuch-search-find-thread-id))) (notmuch-mua-new-reply message-id prompt-for-sender nil))) -(defun notmuch-call-notmuch-process (&rest args) - "Synchronously invoke \"notmuch\" with the given list of arguments. - -If notmuch exits with a non-zero status, output from the process -will appear in a buffer named \"*Notmuch errors*\" and an error -will be signaled." - (with-temp-buffer - (let ((status (apply #'call-process notmuch-command nil t nil args))) - (notmuch-check-exit-status status (cons notmuch-command args) - (buffer-string))))) - (defun notmuch-search-set-tags (tags &optional pos) (let ((new-result (plist-put (notmuch-search-get-result pos) :tags tags))) (notmuch-search-update-result new-result pos))) -- 1.8.4.rc3