From: Jameson Graef Rollins Date: Sun, 8 Apr 2012 00:35:32 +0000 (+1700) Subject: [PATCH 2/8] emacs: update tag-completion function X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=34262832218ec48a8f4df81903cfa245ac9c36dc;p=notmuch-archives.git [PATCH 2/8] emacs: update tag-completion function --- diff --git a/1e/f3163f42e010713cab751a60dd98fc22a04ddd b/1e/f3163f42e010713cab751a60dd98fc22a04ddd new file mode 100644 index 000000000..bbb38a6c0 --- /dev/null +++ b/1e/f3163f42e010713cab751a60dd98fc22a04ddd @@ -0,0 +1,76 @@ +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 AC637431FD9 + for ; Sat, 7 Apr 2012 17:35:50 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] 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 uMx2bQCI+yVz for ; + Sat, 7 Apr 2012 17:35:50 -0700 (PDT) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id B885C431FCF + for ; Sat, 7 Apr 2012 17:35:47 -0700 (PDT) +Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by earth-doxen-postvirus (Postfix) with ESMTP id 3C9EA66E00E3 + for ; Sat, 7 Apr 2012 17:35:45 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new +Received: from finestructure.net (unknown [76.89.193.65]) + (Authenticated sender: jrollins) + by earth-doxen-submit (Postfix) with ESMTP id 6A84666E00DB + for ; Sat, 7 Apr 2012 17:35:43 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id F256075E; Sat, 7 Apr 2012 17:35:42 -0700 (PDT) +From: Jameson Graef Rollins +To: Notmuch Mail +Subject: [PATCH 2/8] emacs: update tag-completion function +Date: Sat, 7 Apr 2012 17:35:32 -0700 +Message-Id: <1333845338-22960-3-git-send-email-jrollins@finestructure.net> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1333845338-22960-2-git-send-email-jrollins@finestructure.net> +References: <1333354853-25729-1-git-send-email-jrollins@finestructure.net> + <1333845338-22960-1-git-send-email-jrollins@finestructure.net> + <1333845338-22960-2-git-send-email-jrollins@finestructure.net> +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, 08 Apr 2012 00:35:51 -0000 + +"search-tags" is deprecated, so we move to the more modern and +supported "search --output=tags". +--- + emacs/notmuch-tag.el | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch-tag.el b/emacs/notmuch-tag.el +index 81b4b00..5240d13 100644 +--- a/emacs/notmuch-tag.el ++++ b/emacs/notmuch-tag.el +@@ -59,7 +59,7 @@ the messages that were tagged" + (with-output-to-string + (with-current-buffer standard-output + (apply 'call-process notmuch-command nil t +- nil "search-tags" search-terms))) ++ nil "search" "--output=tags" search-terms))) + "\n+" t)) + + (defun notmuch-select-tag-with-completion (prompt &rest search-terms) +-- +1.7.9.1 +