[PATCH 3/3] emacs: have tag-completion return all tags for nil input
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 9 Apr 2012 18:36:18 +0000 (11:36 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:12 +0000 (09:46 -0800)
57/a29415e187006cf54c72d680ac79b9570d94ed [new file with mode: 0644]

diff --git a/57/a29415e187006cf54c72d680ac79b9570d94ed b/57/a29415e187006cf54c72d680ac79b9570d94ed
new file mode 100644 (file)
index 0000000..56e9023
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <jrollins@finestructure.net>\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 11799403E4C\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 11:36:27 -0700 (PDT)\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 tvA-7qGWTCe6 for <notmuch@notmuchmail.org>;\r
+       Mon,  9 Apr 2012 11:36:26 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 9D886429E44\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 11:36:26 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id B08AC328030\r
+       for <notmuch@notmuchmail.org>; Mon,  9 Apr 2012 11:36:24 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (gwave-225.ligo.caltech.edu\r
+ [131.215.114.225])    (Authenticated sender: jrollins)        by fire-doxen-submit\r
+ (Postfix) with ESMTP id 6E26C2E50DBB  for <notmuch@notmuchmail.org>; Mon,  9\r
+ Apr 2012 11:36:21 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 170C478D; Mon,  9 Apr 2012 11:36:21 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 3/3] emacs: have tag-completion return all tags for nil input\r
+Date: Mon,  9 Apr 2012 11:36:18 -0700\r
+Message-Id: <1333996578-24772-4-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1333996578-24772-3-git-send-email-jrollins@finestructure.net>\r
+References: <1333996578-24772-1-git-send-email-jrollins@finestructure.net>\r
+       <1333996578-24772-2-git-send-email-jrollins@finestructure.net>\r
+       <1333996578-24772-3-git-send-email-jrollins@finestructure.net>\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, 09 Apr 2012 18:36:27 -0000\r
+\r
+Previously the function would fail if the initial input was nil.  Now\r
+it will return a list of all tags, which obviously makes much more\r
+sense.\r
+---\r
+ emacs/notmuch.el |    2 ++\r
+ 1 files changed, 2 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 8b48399..ba833e6 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -85,6 +85,8 @@ For example:\r
+ `notmuch-read-tag-changes' function.")\r
+ \r
+ (defun notmuch-tag-completions (&optional search-terms)\r
++  (if (null search-terms)\r
++      (setq search-terms (list "*")))\r
+   (split-string\r
+    (with-output-to-string\r
+      (with-current-buffer standard-output\r
+-- \r
+1.7.9.1\r
+\r