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 6E81C421186
\r
6 for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 13:37:28 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 wHzhvm2FVmFc for <notmuch@notmuchmail.org>;
\r
16 Wed, 29 Jun 2011 13:37:28 -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 D62F2429E5F
\r
20 for <notmuch@notmuchmail.org>; Wed, 29 Jun 2011 13:37:27 -0700 (PDT)
\r
21 Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1])
\r
22 by fire-doxen-postvirus (Postfix) with ESMTP id 9670D32811D;
\r
23 Wed, 29 Jun 2011 13:28:41 -0700 (PDT)
\r
24 X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new
\r
25 Received: from servo.finestructure.net (m17.ligo.caltech.edu
\r
26 [131.215.115.117]) (Authenticated sender: jrollins) by fire-doxen-submit
\r
27 (Postfix) with ESMTP id 918A33280E5; Wed, 29 Jun 2011 13:28:38 -0700 (PDT)
\r
28 Received: by servo.finestructure.net (Postfix, from userid 1000)
\r
29 id 5EA6955D; Wed, 29 Jun 2011 13:37:24 -0700 (PDT)
\r
30 From: Jameson Graef Rollins <jrollins@finestructure.net>
\r
31 To: Robin Green <greenrd@greenrd.org>, Notmuch Mail <notmuch@notmuchmail.org>
\r
32 Subject: Re: Preventing the user shooting themself in the foot
\r
33 In-Reply-To: <86iproe86u.fsf@greenrd.plus.com>
\r
34 References: <86iproe86u.fsf@greenrd.plus.com>
\r
35 User-Agent: Notmuch/0.5-292-gaa2fa19 (http://notmuchmail.org) Emacs/23.3.1
\r
36 (x86_64-pc-linux-gnu)
\r
37 Date: Wed, 29 Jun 2011 13:37:21 -0700
\r
38 Message-ID: <87fwmsxtku.fsf@servo.factory.finestructure.net>
\r
40 Content-Type: multipart/signed; boundary="=-=-=";
\r
41 micalg=pgp-sha256; protocol="application/pgp-signature"
\r
42 X-BeenThere: notmuch@notmuchmail.org
\r
43 X-Mailman-Version: 2.1.13
\r
45 List-Id: "Use and development of the notmuch mail system."
\r
46 <notmuch.notmuchmail.org>
\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
50 List-Post: <mailto:notmuch@notmuchmail.org>
\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
54 X-List-Received-Date: Wed, 29 Jun 2011 20:37:28 -0000
\r
58 On Wed, 29 Jun 2011 20:42:01 +0100, Robin Green <greenrd@greenrd.org> wrote:
\r
59 > It's really dangerous to use the 'a' key in notmuch-mode in an inbox
\r
60 > thread which has multiple unread replies! Yes, the other unread replies
\r
61 > will still be tagged unread, but the user might not immediately be aware
\r
62 > of them. It would be really useful to have an optional warning ("More
\r
63 > unread messages in this thread, are you sure?") for this situation!
\r
65 I think that's a bit extreme, but I agree that the default behavior of
\r
66 the emacs key bindings are not good, particularly in regards to
\r
69 I should probably just send in all of my emacs UI tweaks as patches, but
\r
70 here are a couple of functions/bindings I've added to my .emacs to make
\r
71 the message processing more sane. The main new function is
\r
72 notmuch-show-next-open-message-or-pop, which will jump to the next
\r
73 message in the thread, or pop out of the thread if you're on the last
\r
74 message. I then use this in my tag processing functions, such as
\r
75 archiving and deleting.
\r
82 (defun notmuch-show-next-open-message-or-pop ()
\r
83 "Show the next message or pop to parent search."
\r
86 (while (and (setq r (notmuch-show-goto-message-next))
\r
87 (not (notmuch-show-message-visible-p))))
\r
90 (notmuch-show-mark-read)
\r
91 (notmuch-show-message-adjust))
\r
92 (let ((parent-buffer notmuch-show-parent-buffer))
\r
96 (switch-to-buffer parent-buffer)
\r
97 (forward-line 1)))))))
\r
99 (define-key notmuch-show-mode-map "a"
\r
101 "Archive current message and advance."
\r
103 (notmuch-show-remove-tag "inbox")
\r
104 (notmuch-show-next-open-message-or-pop)))
\r
106 (define-key notmuch-show-mode-map "d"
\r
108 "Delete current message and advance to next message."
\r
110 (notmuch-show-add-tag "delete")
\r
111 (notmuch-show-next-open-message-or-pop)))
\r
114 Content-Type: application/pgp-signature
\r
116 -----BEGIN PGP SIGNATURE-----
\r
117 Version: GnuPG v1.4.11 (GNU/Linux)
\r
119 iQIcBAEBCAAGBQJOC40CAAoJEO00zqvie6q88eUP+gPzsSfg9ch7WjKrAjoFKMCJ
\r
120 zL//KI8JVx4uw0+QhIKatfnlPPvjMBeMDtCDyHUocxBvEsnDxS16X2fs8pCy0jya
\r
121 TY31yQYmudn+c9WuAJtGQUfcpMHOLzWROQISRH/y1dJD1JzON52cRGY+LNxXx9Qa
\r
122 SElCkP0+TD3A4lLqiFJ/nLeFdz00CJ4r1DMkeLbo3qpLPLr5emK3G5ysgEv07RzU
\r
123 D2ohdMJlUU3FM138brSTIgK570P295vyFuroOMBeuYVqIjH/GtUQIiOxy8PpMHsv
\r
124 VccbUOBVT4ol3evnJJh+feDjkeGy8+3PF91ERqCAsvRBfl6/1UyI+3ju5Ao91OgG
\r
125 Q0pehPZGBBB3wxUyX6m6hvdOXvkc2vVba9a3GDnDmo53hqv69J2n+7roJeqSaNvj
\r
126 TntZ/DQSBRQG6ZrOt+BjSkJPQn3j5j4qCvjc/jfBVArfdOAPGXGMGH1ICDmUKHvM
\r
127 G+R756JoyD+Ro27dhcWvE0qzE2xi7NPM0M6GBRsZQRSBfJ45gwxH45+N4jNi8U3v
\r
128 Q2AMUohppIouoxwZgk11XyxdYD5EdM0Nc87BSJwpfRlXoq+Uf9r+jzVYzswiITn4
\r
129 r8IXCFruts5Md1McZPK7wU+nnMX8B73772XsNgiHPE0wiG/Z91sOY85RLSzDrXCa
\r
130 a4OY+Hez4nSH/PLTM8Ac
\r
132 -----END PGP SIGNATURE-----
\r