From 4310ac44fe6ce18fa5aa9c32e6a608b30c195d67 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Mon, 24 Jun 2013 19:43:19 +2000 Subject: [PATCH] [PATCH 3/3] emacs: Remove `notmuch-call-notmuch-json' --- 1f/40db41e8dce9712108b6d945af5850d2704089 | 113 ++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 1f/40db41e8dce9712108b6d945af5850d2704089 diff --git a/1f/40db41e8dce9712108b6d945af5850d2704089 b/1f/40db41e8dce9712108b6d945af5850d2704089 new file mode 100644 index 000000000..837340585 --- /dev/null +++ b/1f/40db41e8dce9712108b6d945af5850d2704089 @@ -0,0 +1,113 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id CD920431FD8 + for ; Sun, 23 Jun 2013 16:43:43 -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 zMmSre5yuiJy for ; + Sun, 23 Jun 2013 16:43:37 -0700 (PDT) +Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu + [18.9.25.12]) + by olra.theworths.org (Postfix) with ESMTP id 6F76D431FB6 + for ; Sun, 23 Jun 2013 16:43:37 -0700 (PDT) +X-AuditID: 1209190c-b7fa48e000000947-22-51c788281a23 +Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) + by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP + id 02.93.02375.82887C15; Sun, 23 Jun 2013 19:43:37 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id r5NNhPke009143; + Sun, 23 Jun 2013 19:43:26 -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 r5NNhN1G023369 + (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); + Sun, 23 Jun 2013 19:43:25 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.77) + (envelope-from ) + id 1UqtwK-0000L6-0G; Sun, 23 Jun 2013 19:43:24 -0400 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH 3/3] emacs: Remove `notmuch-call-notmuch-json' +Date: Sun, 23 Jun 2013 19:43:19 -0400 +Message-Id: <1372030999-1262-3-git-send-email-amdragon@mit.edu> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1372030999-1262-1-git-send-email-amdragon@mit.edu> +References: <1372030999-1262-1-git-send-email-amdragon@mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsUixCmqravZcTzQ4HqgxfWbM5kdGD2erbrF + HMAYxWWTkpqTWZZapG+XwJXx6cI05oK3XBVHH91jb2C8ytHFyMkhIWAi8evODFYIW0ziwr31 + bF2MXBxCAvsYJU7dPcQK4WxklDi86RkThHOHSeLDxTmMEM5cRonfTb1g/WwCGhLb9i9nBLFF + BKQldt6dDRTn4GAWUJP406UCEhYWsJN41rEFrJxFQFVixpRpzCA2r4C9RNOrX1BnKEp0P5vA + BmJzCjhI/P8xkR1kjBBQzdwVSRMY+RcwMqxilE3JrdLNTczMKU5N1i1OTszLSy3SNdTLzSzR + S00p3cQIDhlJnh2Mbw4qHWIU4GBU4uH9YXk8UIg1say4MvcQoyQHk5Io7/kWoBBfUn5KZUZi + cUZ8UWlOavEhRgkOZiUR3l4roBxvSmJlVWpRPkxKmoNFSZxX5NbOQCGB9MSS1OzU1ILUIpis + DAeHkgSvVTtQo2BRanpqRVpmTglCmomDE2Q4D9DwbSA1vMUFibnFmekQ+VOMilLivIUgCQGQ + REZpHlwvLKZfMYoDvSLM2w5SxQNMB3Ddr4AGMwENnpwKNrgkESEl1cDoKPXG4HzptENSX+5P + Mm8223IwkltyshyLcFLbXHm+eAX1OYbrjvlts7d/VLpPX05WVHo905rtX/bG3Jl3MvFe3Umz + vSnGfRf9VH/8mGnu1DFJ3SxQWmHm54aLQsmZDbO2LJ7F135iuTnrIZYG6S9R7RpSz26f2zvr + Q1huz5N9t7caer/q6dZTYinOSDTUYi4qTgQAx01tG8QCAAA= +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: Sun, 23 Jun 2013 23:43:44 -0000 + +This function is no longer used. +--- + emacs/notmuch-lib.el | 22 ---------------------- + 1 file changed, 22 deletions(-) + +diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el +index 36eacc1..da814d5 100644 +--- a/emacs/notmuch-lib.el ++++ b/emacs/notmuch-lib.el +@@ -462,28 +462,6 @@ You may need to restart Emacs or upgrade your notmuch package.")) + ;; `notmuch-logged-error' does not return. + )))) + +-(defun notmuch-call-notmuch-json (&rest args) +- "Invoke `notmuch-command' with ARGS and return the parsed JSON output. +- +-The returned output will represent objects using property lists +-and arrays as lists. If notmuch exits with a non-zero status, +-this will pop up a buffer containing notmuch's output and signal +-an error." +- +- (with-temp-buffer +- (let ((err-file (make-temp-file "nmerr"))) +- (unwind-protect +- (let ((status (apply #'call-process +- notmuch-command nil (list t err-file) nil args))) +- (notmuch-check-exit-status status (cons notmuch-command args) +- (buffer-string) err-file) +- (goto-char (point-min)) +- (let ((json-object-type 'plist) +- (json-array-type 'list) +- (json-false 'nil)) +- (json-read))) +- (delete-file err-file))))) +- + (defun notmuch-call-notmuch-sexp (&rest args) + "Invoke `notmuch-command' with ARGS and return the parsed S-exp output. + +-- +1.7.10.4 + -- 2.26.2