1 Return-Path: <jrollins@finestructure.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id AA263431FAE
\r
6 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:09 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id a34FcYKEZwXg for <notmuch@notmuchmail.org>;
\r
16 Sun, 19 Aug 2012 18:53:09 -0700 (PDT)
\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id A912E431FBC
\r
20 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:07 -0700 (PDT)
\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
22 by earth-doxen-postvirus (Postfix) with ESMTP id 71BB666E00DF
\r
23 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:07 -0700 (PDT)
\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new
\r
25 Received: from finestructure.net (unknown [76.89.192.57])
\r
26 (Authenticated sender: jrollins)
\r
27 by earth-doxen-submit (Postfix) with ESMTP id A2AFE66E00E4
\r
28 for <notmuch@notmuchmail.org>; Sun, 19 Aug 2012 18:53:05 -0700 (PDT)
\r
29 Received: by finestructure.net (Postfix, from userid 1000)
\r
30 id 0108CCF8; Sun, 19 Aug 2012 18:53:03 -0700 (PDT)
\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
33 Subject: [PATCH 10/11] emacs: add function to toggle showing
\r
34 authors/recipients in search
\r
35 Date: Sun, 19 Aug 2012 18:52:49 -0700
\r
36 Message-Id: <1345427570-26518-11-git-send-email-jrollins@finestructure.net>
\r
37 X-Mailer: git-send-email 1.7.10.4
\r
38 In-Reply-To: <1345427570-26518-10-git-send-email-jrollins@finestructure.net>
\r
39 References: <1345427570-26518-1-git-send-email-jrollins@finestructure.net>
\r
40 <1345427570-26518-2-git-send-email-jrollins@finestructure.net>
\r
41 <1345427570-26518-3-git-send-email-jrollins@finestructure.net>
\r
42 <1345427570-26518-4-git-send-email-jrollins@finestructure.net>
\r
43 <1345427570-26518-5-git-send-email-jrollins@finestructure.net>
\r
44 <1345427570-26518-6-git-send-email-jrollins@finestructure.net>
\r
45 <1345427570-26518-7-git-send-email-jrollins@finestructure.net>
\r
46 <1345427570-26518-8-git-send-email-jrollins@finestructure.net>
\r
47 <1345427570-26518-9-git-send-email-jrollins@finestructure.net>
\r
48 <1345427570-26518-10-git-send-email-jrollins@finestructure.net>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Mon, 20 Aug 2012 01:53:10 -0000
\r
63 New function, notmuch-search-toggle-tofrom, toggles whether thread
\r
64 authors or recipients are shown in the 'authors' fields in the search
\r
65 results. This is bound to the '/' key.
\r
67 emacs/notmuch.el | 11 +++++++++++
\r
68 1 file changed, 11 insertions(+)
\r
70 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
71 index d05b1e8..ca16583 100644
\r
72 --- a/emacs/notmuch.el
\r
73 +++ b/emacs/notmuch.el
\r
74 @@ -226,6 +226,7 @@ For a mouse binding, return nil."
\r
75 (define-key map "m" 'notmuch-mua-new-mail)
\r
76 (define-key map "s" 'notmuch-search)
\r
77 (define-key map "o" 'notmuch-search-toggle-order)
\r
78 + (define-key map "/" 'notmuch-search-toggle-tofrom)
\r
79 (define-key map "c" 'notmuch-search-stash-map)
\r
80 (define-key map "=" 'notmuch-search-refresh-view)
\r
81 (define-key map "G" 'notmuch-search-poll-and-refresh-view)
\r
82 @@ -1082,6 +1083,16 @@ search."
\r
83 (set 'notmuch-search-oldest-first (not notmuch-search-oldest-first))
\r
84 (notmuch-search-refresh-view))
\r
86 +(defun notmuch-search-toggle-tofrom ()
\r
87 + "Toggle showing thread authors or recipients.
\r
89 +By default, search results display the authors of the threads in
\r
90 +the \"authors\" field. This command toggles the display of
\r
91 +thread recipients in that field instead."
\r
93 + (set 'notmuch-search-show-recipients (not notmuch-search-show-recipients))
\r
94 + (notmuch-search-refresh-view))
\r
96 (defun notmuch-search-filter (query)
\r
97 "Filter the current search results based on an additional query string.
\r