From: Jameson Graef Rollins Date: Mon, 2 Apr 2012 08:20:52 +0000 (+1700) Subject: [PATCH 5/6] emacs: change name of search-archive-thread function to just search-archive X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7f7d739844ed932c77a831ab33387e5960bda238;p=notmuch-archives.git [PATCH 5/6] emacs: change name of search-archive-thread function to just search-archive --- diff --git a/b2/97a5e12cea1bfaa38a9eb832de8bdd243619e6 b/b2/97a5e12cea1bfaa38a9eb832de8bdd243619e6 new file mode 100644 index 000000000..78bff552e --- /dev/null +++ b/b2/97a5e12cea1bfaa38a9eb832de8bdd243619e6 @@ -0,0 +1,94 @@ +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 249AC41ED92 + for ; Mon, 2 Apr 2012 01:21:02 -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 EAZ667TUx7rc for ; + Mon, 2 Apr 2012 01:21:01 -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 08A70431FC2 + for ; Mon, 2 Apr 2012 01:21:01 -0700 (PDT) +Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by earth-doxen-postvirus (Postfix) with ESMTP id E7B7B66E00F3 + for ; Mon, 2 Apr 2012 01:20:59 -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 36A7466E00E4 + for ; Mon, 2 Apr 2012 01:20:58 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 9AA1219E8; Mon, 2 Apr 2012 01:20:56 -0700 (PDT) +From: Jameson Graef Rollins +To: Notmuch Mail +Subject: [PATCH 5/6] emacs: change name of search-archive-thread function to + just search-archive +Date: Mon, 2 Apr 2012 01:20:52 -0700 +Message-Id: <1333354853-25729-6-git-send-email-jrollins@finestructure.net> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1333354853-25729-5-git-send-email-jrollins@finestructure.net> +References: <1333354853-25729-1-git-send-email-jrollins@finestructure.net> + <1333354853-25729-2-git-send-email-jrollins@finestructure.net> + <1333354853-25729-3-git-send-email-jrollins@finestructure.net> + <1333354853-25729-4-git-send-email-jrollins@finestructure.net> + <1333354853-25729-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: Mon, 02 Apr 2012 08:21:02 -0000 + +This changes the name of this function to be more consistent with the +current thread tagging functions. The documentation is also updated +and improved. +--- + emacs/notmuch.el | 8 ++++---- + 1 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index e1bff42..19423ea 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -289,7 +289,7 @@ For a mouse binding, return nil." + (define-key map "f" 'notmuch-search-filter) + (define-key map [mouse-1] 'notmuch-search-show-thread) + (define-key map "*" 'notmuch-search-tag-all) +- (define-key map "a" 'notmuch-search-archive-thread) ++ (define-key map "a" 'notmuch-search-archive) + (define-key map "-" 'notmuch-search-remove-tag) + (define-key map "+" 'notmuch-search-add-tag) + (define-key map (kbd "RET") 'notmuch-search-show-thread) +@@ -667,10 +667,10 @@ tab completion)." + (interactive) + (notmuch-search-tag "-")) + +-(defun notmuch-search-archive-thread () +- "Archive the currently selected thread (remove its \"inbox\" tag). ++(defun notmuch-search-archive () ++ "Archive the currently selected thread or region (remove \"inbox\" tags). + +-This function advances the next thread when finished." ++The cursor is advanced to the next thread after tagging." + (interactive) + (notmuch-search-tag "-inbox") + (notmuch-search-next-thread)) +-- +1.7.9.1 +