From: Jameson Graef Rollins Date: Sat, 14 Apr 2012 18:52:54 +0000 (+1700) Subject: [PATCH 5/5] emacs: eliminate search-tag-thread in favor of just search-tag X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=dbabac800f920ccc1cbe5b819b1718d9e1cf52fb;p=notmuch-archives.git [PATCH 5/5] emacs: eliminate search-tag-thread in favor of just search-tag --- diff --git a/a5/c9993321905e2507942f012ca5abb689326d8a b/a5/c9993321905e2507942f012ca5abb689326d8a new file mode 100644 index 000000000..a95bb3f39 --- /dev/null +++ b/a5/c9993321905e2507942f012ca5abb689326d8a @@ -0,0 +1,93 @@ +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 D0717431FC9 + for ; Sat, 14 Apr 2012 11:53:10 -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 idRorIRIOrvZ for ; + Sat, 14 Apr 2012 11:53:08 -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 D8B77431FC2 + for ; Sat, 14 Apr 2012 11:53:05 -0700 (PDT) +Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by earth-doxen-postvirus (Postfix) with ESMTP id 8CC3366E0026 + for ; Sat, 14 Apr 2012 11:53:04 -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 BE20E66E00A7 + for ; Sat, 14 Apr 2012 11:53:02 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 34C5B6EF; Sat, 14 Apr 2012 11:53:01 -0700 (PDT) +From: Jameson Graef Rollins +To: Notmuch Mail +Subject: [PATCH 5/5] emacs: eliminate search-tag-thread in favor of just + search-tag +Date: Sat, 14 Apr 2012 11:52:54 -0700 +Message-Id: <1334429574-12918-6-git-send-email-jrollins@finestructure.net> +X-Mailer: git-send-email 1.7.9.5 +In-Reply-To: <1334429574-12918-5-git-send-email-jrollins@finestructure.net> +References: <1333845338-22960-1-git-send-email-jrollins@finestructure.net> + <1334429574-12918-1-git-send-email-jrollins@finestructure.net> + <1334429574-12918-2-git-send-email-jrollins@finestructure.net> + <1334429574-12918-3-git-send-email-jrollins@finestructure.net> + <1334429574-12918-4-git-send-email-jrollins@finestructure.net> + <1334429574-12918-5-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: Sat, 14 Apr 2012 18:53:11 -0000 + +notmuch-search-tag-thread is now completely redundant with +notmuch-search-tag so we eliminate it to simplify the interface. +--- + emacs/notmuch.el | 8 +------- + 1 file changed, 1 insertion(+), 7 deletions(-) + +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index a03a526..cfc3b29 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -517,12 +517,6 @@ and will also appear in a buffer named \"*Notmuch errors*\"." + (forward-line 1)) + output))) + +-(defun notmuch-search-tag-thread (&rest tag-changes) +- "Change tags for the currently selected thread. +- +-See `notmuch-search-tag-region' for details." +- (apply 'notmuch-search-tag-region (point) (point) tag-changes)) +- + (defun notmuch-search-tag-region (beg end &optional tag-changes) + "Change tags for threads in the given region." + (let ((search-string (notmuch-search-find-thread-id-region-search beg end))) +@@ -560,7 +554,7 @@ See `notmuch-tag' for information on the format of TAG-CHANGES." + + This function advances the next thread when finished." + (interactive) +- (notmuch-search-tag-thread "-inbox") ++ (notmuch-search-tag '("-inbox")) + (notmuch-search-next-thread)) + + (defvar notmuch-search-process-filter-data nil +-- +1.7.9.5 +