[PATCH 4/6] emacs: remove redundant notmuch-search-tag-thread function
authorJameson Graef Rollins <jrollins@finestructure.net>
Mon, 2 Apr 2012 08:20:51 +0000 (01:20 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:58 +0000 (09:45 -0800)
fb/85284e5f5d21d5c3b6b3b9b68832f43303357f [new file with mode: 0644]

diff --git a/fb/85284e5f5d21d5c3b6b3b9b68832f43303357f b/fb/85284e5f5d21d5c3b6b3b9b68832f43303357f
new file mode 100644 (file)
index 0000000..5029fa4
--- /dev/null
@@ -0,0 +1,96 @@
+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 92AAF41ED8C\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:21:10 -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 He499kO3vZvV for <notmuch@notmuchmail.org>;\r
+       Mon,  2 Apr 2012 01:21:08 -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 F09F441ED8E\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:21:01 -0700 (PDT)\r
+Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by fire-doxen-postvirus (Postfix) with ESMTP id C47262E509DC\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:21:01 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.193.65])\r
+       (Authenticated sender: jrollins)\r
+       by fire-doxen-submit (Postfix) with ESMTP id 142DA2E50C6E\r
+       for <notmuch@notmuchmail.org>; Mon,  2 Apr 2012 01:20:57 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 9784719E6; Mon,  2 Apr 2012 01:20:56 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: [PATCH 4/6] emacs: remove redundant notmuch-search-tag-thread\r
+ function\r
+Date: Mon,  2 Apr 2012 01:20:51 -0700\r
+Message-Id: <1333354853-25729-5-git-send-email-jrollins@finestructure.net>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1333354853-25729-4-git-send-email-jrollins@finestructure.net>\r
+References: <1333354853-25729-1-git-send-email-jrollins@finestructure.net>\r
+       <1333354853-25729-2-git-send-email-jrollins@finestructure.net>\r
+       <1333354853-25729-3-git-send-email-jrollins@finestructure.net>\r
+       <1333354853-25729-4-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, 02 Apr 2012 08:21:11 -0000\r
+\r
+Now that the notmuch-search-tag functions provides the exact same\r
+functionality, this function is now entirely redundant.  Keeping it\r
+around would just be bloat and confusion.  notmuch-search-tag should\r
+now be the canonical function for search-mode tag changes.\r
+\r
+The archive-thread function (which was the only function to use\r
+tag-thread) is updating accordingly.\r
+---\r
+ emacs/notmuch.el |    8 +-------\r
+ 1 files changed, 1 insertions(+), 7 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 3b78584..e1bff42 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -624,12 +624,6 @@ the messages that were tagged"\r
+       (forward-line 1))\r
+       output)))\r
+ \r
+-(defun notmuch-search-tag-thread (&rest tag-changes)\r
+-  "Change tags for the currently selected thread.\r
+-\r
+-See `notmuch-search-tag-region' for details."\r
+-  (apply 'notmuch-search-tag-region (point) (point) tag-changes))\r
+-\r
+ (defun notmuch-search-tag-region (beg end &rest tag-changes)\r
+   "Change tags for threads in the given region.\r
+ \r
+@@ -678,7 +672,7 @@ tab completion)."\r
+ \r
+ This function advances the next thread when finished."\r
+   (interactive)\r
+-  (notmuch-search-tag-thread "-inbox")\r
++  (notmuch-search-tag "-inbox")\r
+   (notmuch-search-next-thread))\r
+ \r
+ (defvar notmuch-search-process-filter-data nil\r
+-- \r
+1.7.9.1\r
+\r