Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 4d / 40ce9d2ced3f359bdceb44f17eadaeec82ecef
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 4E103431FD0\r
6         for <notmuch@notmuchmail.org>; Mon,  4 Jul 2011 17:04:07 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \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 qzxYTZjzoAx9 for <notmuch@notmuchmail.org>;\r
16         Mon,  4 Jul 2011 17:04:06 -0700 (PDT)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id AFC75431FB6\r
20         for <notmuch@notmuchmail.org>; Mon,  4 Jul 2011 17:04:06 -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 A5E5466E0313;\r
23         Mon,  4 Jul 2011 17:04:02 -0700 (PDT)\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
25 Received: from servo.finestructure.net (cpe-98-149-172-122.socal.res.rr.com\r
26         [98.149.172.122]) (Authenticated sender: jrollins)\r
27         by earth-doxen-submit (Postfix) with ESMTP id 74EE166E032B;\r
28         Mon,  4 Jul 2011 17:03:58 -0700 (PDT)\r
29 Received: by servo.finestructure.net (Postfix, from userid 1000)\r
30         id 53DA21FF; Mon,  4 Jul 2011 17:03:59 -0700 (PDT)\r
31 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
32 To: Matthieu Lemerre <racin@free.fr>, Robin Green <greenrd@greenrd.org>,\r
33         Notmuch Mail <notmuch@notmuchmail.org>\r
34 Subject: Re: Dangerous space bar key (was: Preventing the user shooting\r
35         themself in the foot)\r
36 In-Reply-To: <877h7xafto.fsf@free.fr>\r
37 References: <86iproe86u.fsf@greenrd.plus.com> <877h7xafto.fsf@free.fr>\r
38 User-Agent: Notmuch/0.5-292-gaa2fa19 (http://notmuchmail.org) Emacs/23.3.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Mon, 04 Jul 2011 17:03:51 -0700\r
41 Message-ID: <87pqlpioew.fsf@servo.factory.finestructure.net>\r
42 MIME-Version: 1.0\r
43 Content-Type: multipart/signed; boundary="=-=-=";\r
44         micalg=pgp-sha256; protocol="application/pgp-signature"\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Tue, 05 Jul 2011 00:04:07 -0000\r
58 \r
59 --=-=-=\r
60 Content-Transfer-Encoding: quoted-printable\r
61 \r
62 On Mon, 04 Jul 2011 23:36:35 +0200, Matthieu Lemerre <racin@free.fr> wrote:\r
63 > I like to use the space (and sometimes the backspace key) to read\r
64 > threads back and forth, but sometimes I might read stuff to quickly and\r
65 > archive a thread without wanting it. It is then complex to find it back\r
66 > (especially if the thread contained a single message and I hit space\r
67 > before actually reading the message, so I can't find it again).\r
68 >=20\r
69 > As a workaround, I have changed the space key function\r
70 > "notmuch-show-advance-and-archive" to not archive the thread if we are\r
71 > at the end of the thread, but to just do nothing. Thus I have to\r
72 > expicitely archive the thread when I have finished reading it, which I\r
73 > find much safer.\r
74 \r
75 I completely agree with your discomfort with the current function bound\r
76 to space.  I don't like it at all, and I similarly rebound space to be a\r
77 much more sensible function:\r
78 \r
79 (defun notmuch-show-advance ()\r
80   "Advance through messages in a thread."\r
81   (interactive)\r
82   (let ((end-of-this-message (notmuch-show-message-bottom)))\r
83     (cond\r
84      ;; Ideally we would test `end-of-this-message' against the result\r
85      ;; of `window-end', but that doesn't account for the fact that\r
86      ;; the end of the message might be hidden, so we have to actually\r
87      ;; go to the end, walk back over invisible text and then see if\r
88      ;; point is visible.\r
89      ((save-excursion\r
90         (goto-char (- end-of-this-message 1))\r
91         (notmuch-show-move-past-invisible-backward)\r
92         (> (point) (window-end)))\r
93       ;; The bottom of this message is not visible - scroll.\r
94       (scroll-up nil))\r
95      ((not (=3D end-of-this-message (point-max)))\r
96       ;; This is not the last message - move to the next visible one.\r
97       (notmuch-show-next-open-message))\r
98      )))\r
99 \r
100 Notice I also made it so that this does not exit the current thread\r
101 view.\r
102 \r
103 jamie.\r
104 \r
105 --=-=-=\r
106 Content-Type: application/pgp-signature\r
107 \r
108 -----BEGIN PGP SIGNATURE-----\r
109 Version: GnuPG v1.4.11 (GNU/Linux)\r
110 \r
111 iQIcBAEBCAAGBQJOElTnAAoJEO00zqvie6q8gt0P/ix/qEvYJdJQCT8XRcivXSFP\r
112 vZfspYQzEuLQjP+ydGVMRSeD4cR4g6BmnDeCzlA13EmVGXsAjlgF6i8xEUdh1tVB\r
113 eBErN5ZKSMRnCShfsw2gAwi5p1KgMZdANM4jGYlWj6gmRsj1jnKAdpOOEnH+cZNl\r
114 D224tFE8BQ5eLyxmrJyqdDsgaSgMGfP8DpMh5KqdANdI4PCzvHK3lcHz88NeAR6N\r
115 TgBOSCJByHRKiVXzU4E7TkslSGAeojpyldPVjqk8wa+wLIn7+zRK8GcJH3zB2HJR\r
116 y6AihlTyFQZGgV3DS0hNbwiUcSt6IM8qotkGOG/jl95HoNBdyZIjf6KJdkq7LzHP\r
117 ann8qtI18hfnhmRHyEv7pkw4R7TygwZLrrqQOG4+IYZh7LpmUyXOdQj9ib1N/clZ\r
118 qmx7Xmg+BGviBRSVJyAXHK0zet9+Y7seVv5y0DXOotG0o114A9hGRFigLXT6KJEP\r
119 1ak91fL7QtV+s2CI7FcIk1Nl7/VNPflMDGS77id7uY8zL+Yr3d5iePW86LHz+OKI\r
120 jbWli/h4jWmdcaEvYY1YaDXDKsjmdFsvTsOuz40FsDwgIdhgBNNWeJZOiLnrp12f\r
121 EldNaaY6vF1XpPG5v1J8uQBxRYsU9ai4GtUPUfoaR4vjbG7gbFUbVa4HNUOPHY73\r
122 /WV1M3mBxWyfI64Mn9wD\r
123 =+XHZ\r
124 -----END PGP SIGNATURE-----\r
125 --=-=-=--\r