1 Return-Path: <amdragon@mit.edu>
\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 4D59C431FBD
\r
6 for <notmuch@notmuchmail.org>; Mon, 4 Aug 2014 18:45:35 -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 CxmgdUKiHX+m for <notmuch@notmuchmail.org>;
\r
16 Mon, 4 Aug 2014 18:45:29 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-5.mit.edu (dmz-mailsec-scanner-5.mit.edu
\r
19 by olra.theworths.org (Postfix) with ESMTP id B383C431FAE
\r
20 for <notmuch@notmuchmail.org>; Mon, 4 Aug 2014 18:45:29 -0700 (PDT)
\r
21 X-AuditID: 12074422-f79be6d000007518-2d-53e03739b80f
\r
22 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])
\r
23 (using TLS with cipher AES256-SHA (256/256 bits))
\r
24 (Client did not present a certificate)
\r
25 by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP
\r
26 id 79.4B.29976.93730E35; Mon, 4 Aug 2014 21:45:29 -0400 (EDT)
\r
27 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
28 by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id s751jR37014355;
\r
29 Mon, 4 Aug 2014 21:45:27 -0400
\r
30 Received: from drake.dyndns.org
\r
31 (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com
\r
32 [216.15.114.40]) (authenticated bits=0)
\r
33 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
34 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s751jPS7005239
\r
35 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
36 Mon, 4 Aug 2014 21:45:26 -0400
\r
37 Received: from amthrax by drake.dyndns.org with local (Exim 4.77)
\r
38 (envelope-from <amdragon@mit.edu>)
\r
39 id 1XETob-0004bB-7w; Mon, 04 Aug 2014 21:45:25 -0400
\r
40 From: Austin Clements <amdragon@MIT.EDU>
\r
41 To: notmuch@notmuchmail.org
\r
42 Subject: [PATCH v3 2/2] emacs: Expand default saved searches and add shortcut
\r
44 Date: Mon, 4 Aug 2014 21:45:21 -0400
\r
45 Message-Id: <1407203121-17640-2-git-send-email-amdragon@mit.edu>
\r
46 X-Mailer: git-send-email 2.0.0
\r
47 In-Reply-To: <1407203121-17640-1-git-send-email-amdragon@mit.edu>
\r
48 References: <20140805014403.GX13893@mit.edu>
\r
49 <1407203121-17640-1-git-send-email-amdragon@mit.edu>
\r
50 X-Brightmail-Tracker:
\r
51 H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsUixCmqrWtp/iDY4ONOTosbrd2MFvvubGGy
\r
52 WD2Xx+L6zZnMDiweu57/ZfLYOesuu8ezVbeYPbYces8cwBLFZZOSmpNZllqkb5fAlbF22VrG
\r
53 gu1CFTsW3mZqYLzO28XIySEhYCKxaO9CZghbTOLCvfVsXYxcHEICs5kkelt2s0I4GxglTq1u
\r
54 hsrcZpK4sPkxM4Qzl1Hi8eTVTCD9bAIaEtv2L2cEsUUEpCV23p3NCmIzC2RJbHh5EGyHsECQ
\r
55 xJSuN2BxFgFViUX/L4D18go4SJztX8UCcYecRMONT2wgNqeAo8S6y5vA4kICyRL3Li1im8DI
\r
56 v4CRYRWjbEpulW5uYmZOcWqybnFyYl5eapGuqV5uZoleakrpJkZQyLG7KO1g/HlQ6RCjAAej
\r
57 Eg+vgNr9YCHWxLLiytxDjJIcTEqivKF6D4KF+JLyUyozEosz4otKc1KLDzFKcDArifDmCwLl
\r
58 eFMSK6tSi/JhUtIcLErivG+trYKFBNITS1KzU1MLUotgsjIcHEoSvD9NgRoFi1LTUyvSMnNK
\r
59 ENJMHJwgw3mAhjubgQwvLkjMLc5Mh8ifYlSUEufNBGkWAElklObB9cJSwitGcaBXhHkvgFTx
\r
60 ANMJXPcroMFMQIPNdO6DDC5JREhJNTD6NyZ908h9ts10pjn/0TkCz3MXMDLmTHtk8mf2CtfY
\r
61 r7sWeD1wWsoVp3T8n2268sm9L2+87pM5a1pyjv9U6r5Di7PXpV35+fGAYfWy1eX78/mFizh+
\r
62 vPy00aNq6zbxnDdzk6fNVG44dI6/gXmTU7fKwejJ826d0GRLX3P/sZcV25HNvxtW8Cq9V2Ip
\r
63 zkg01GIuKk4EAElZXFDkAgAA
\r
64 X-BeenThere: notmuch@notmuchmail.org
\r
65 X-Mailman-Version: 2.1.13
\r
67 List-Id: "Use and development of the notmuch mail system."
\r
68 <notmuch.notmuchmail.org>
\r
69 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
71 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
72 List-Post: <mailto:notmuch@notmuchmail.org>
\r
73 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
74 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
75 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
76 X-List-Received-Date: Tue, 05 Aug 2014 01:45:35 -0000
\r
78 This should help new users off to a better start with the addition of
\r
79 more sensible saved searches and default shortcut keys. Most existing
\r
80 users have probably customized this variable and won't be affected.
\r
82 emacs/notmuch-hello.el | 9 +++++++--
\r
83 test/emacs.expected-output/notmuch-hello | 2 +-
\r
84 test/emacs.expected-output/notmuch-hello-long-names | 2 +-
\r
85 3 files changed, 9 insertions(+), 4 deletions(-)
\r
87 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el
\r
88 index 061b27d..65d0627 100644
\r
89 --- a/emacs/notmuch-hello.el
\r
90 +++ b/emacs/notmuch-hello.el
\r
91 @@ -93,8 +93,13 @@ (define-widget 'notmuch-saved-search-plist 'list
\r
92 (const :tag "Oldest-first" oldest-first)
\r
93 (const :tag "Newest-first" newest-first))))))
\r
95 -(defcustom notmuch-saved-searches '((:name "inbox" :query "tag:inbox")
\r
96 - (:name "unread" :query "tag:unread"))
\r
97 +(defcustom notmuch-saved-searches
\r
98 + `((:name "inbox" :query "tag:inbox" :key ,(kbd "i"))
\r
99 + (:name "unread" :query "tag:unread" :key ,(kbd "u"))
\r
100 + (:name "flagged" :query "tag:flagged" :key ,(kbd "f"))
\r
101 + (:name "sent" :query "tag:sent" :key ,(kbd "t"))
\r
102 + (:name "drafts" :query "tag:draft" :key ,(kbd "d"))
\r
103 + (:name "all mail" :query "*" :key ,(kbd "a")))
\r
104 "A list of saved searches to display.
\r
106 The saved search can be given in 3 forms. The preferred way is as
\r
107 diff --git a/test/emacs.expected-output/notmuch-hello b/test/emacs.expected-output/notmuch-hello
\r
108 index 2d69891..9ba4cfc 100644
\r
109 --- a/test/emacs.expected-output/notmuch-hello
\r
110 +++ b/test/emacs.expected-output/notmuch-hello
\r
113 Saved searches: [edit]
\r
115 - 52 inbox 52 unread
\r
116 + 52 inbox 52 unread 52 all mail
\r
120 diff --git a/test/emacs.expected-output/notmuch-hello-long-names b/test/emacs.expected-output/notmuch-hello-long-names
\r
121 index 486d0d9..1c8d6eb 100644
\r
122 --- a/test/emacs.expected-output/notmuch-hello-long-names
\r
123 +++ b/test/emacs.expected-output/notmuch-hello-long-names
\r
126 Saved searches: [edit]
\r
128 - 52 inbox 52 unread
\r
129 + 52 inbox 52 unread 52 all mail
\r