Reply all - issue
[notmuch-archives.git] / 0f / 1e0564012a42b8d66788d6b5abe260caf0f19a
1 Return-Path: <dmitry.kurochkin@gmail.com>\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 537F7431E64\r
6         for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 15:18:58 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.513\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.513 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, GAPPY_SUBJECT=1.312, RCVD_IN_DNSWL_LOW=-0.7]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id loLwQYu6juM6 for <notmuch@notmuchmail.org>;\r
18         Tue, 31 Jan 2012 15:18:57 -0800 (PST)\r
19 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com\r
20         [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
21         (No client certificate requested)\r
22         by olra.theworths.org (Postfix) with ESMTPS id E225D429E25\r
23         for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 15:18:56 -0800 (PST)\r
24 Received: by bke11 with SMTP id 11so528295bke.26\r
25         for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 15:18:54 -0800 (PST)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
27         h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
28         :mime-version:content-type;\r
29         bh=U9XCxJljR7GbajPVeNGuME+fqMDH6CLx2kZS7lJAuX0=;\r
30         b=RWgGHZoPvxTEBtwEoKbDFeN8U4TZhY1VDbM/HFXXPfcvXvBoEnQ6NeBw9Vn55O047d\r
31         oZlPoEP5OAeUBZYobcq4Ku/KFYI2fl4GwQYgRM3XkUWnPrj5S1mgHJZrTLmmQ9NYTJEX\r
32         2DpY0f0a10CagjQpQ2T4Rikt/p2VNIqhYuiyg=\r
33 Received: by 10.204.136.211 with SMTP id s19mr11593301bkt.101.1328051932721;\r
34         Tue, 31 Jan 2012 15:18:52 -0800 (PST)\r
35 Received: from localhost ([91.144.186.21])\r
36         by mx.google.com with ESMTPS id cz3sm48678823bkb.3.2012.01.31.15.18.51\r
37         (version=TLSv1/SSLv3 cipher=OTHER);\r
38         Tue, 31 Jan 2012 15:18:51 -0800 (PST)\r
39 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
40 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
41 Subject: Re: [RFC PATCH v2] emacs: make show view a/A/x/X key bindings more\r
42         consistent\r
43 In-Reply-To: <1328030946-9793-1-git-send-email-jani@nikula.org>\r
44 References: <id:1328022235-8400-1-git-send-email-jani@nikula.org>\r
45         <1328030946-9793-1-git-send-email-jani@nikula.org>\r
46 User-Agent: Notmuch/0.11+139~gd9b7cab (http://notmuchmail.org) Emacs/23.3.1\r
47         (x86_64-pc-linux-gnu)\r
48 Date: Wed, 01 Feb 2012 03:17:39 +0400\r
49 Message-ID: <87sjivmpgs.fsf@gmail.com>\r
50 MIME-Version: 1.0\r
51 Content-Type: text/plain; charset=us-ascii\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Tue, 31 Jan 2012 23:18:58 -0000\r
65 \r
66 On Tue, 31 Jan 2012 19:29:06 +0200, Jani Nikula <jani@nikula.org> wrote:\r
67 > Modify the show view key bindings as follows to make them more\r
68 > consistent:\r
69\r
70 > 'a' = Archive current message, then move to next message, or show next\r
71 > thread from search if at the last message in thread.\r
72\r
73 > 'A' = Archive each message in thread, then show next thread from\r
74 > search.\r
75\r
76 > 'x' = Archive current message, then move to next message, or exit back\r
77 > to search results if at the last message in thread.\r
78\r
79 > 'X' = Archive each message in thread, then exit back to search\r
80 > results.\r
81\r
82 > The changes make the key bindings more consistent in two ways:\r
83 > 1) 'a'/'A' both advance to the next thread like 'a' used to.\r
84 > 2) 'x' operates on messages and 'X' on threads like 'a'/'A'.\r
85\r
86 > ---\r
87\r
88 > The original proposal with some discussion is at\r
89 > http://titanpad.com/SA39EbNezU.\r
90\r
91 > This v2 is merely a slightly polished version of the original. There\r
92 > will be no further contributions on the subject from me.\r
93 > ---\r
94 \r
95 Looks good to me.\r
96 \r
97 Regards,\r
98   Dmitry\r
99 \r
100 >  emacs/notmuch-show.el |   28 ++++++++++++++++++++++------\r
101 >  1 files changed, 22 insertions(+), 6 deletions(-)\r
102\r
103 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
104 > index de9421e..57830b6 100644\r
105 > --- a/emacs/notmuch-show.el\r
106 > +++ b/emacs/notmuch-show.el\r
107 > @@ -1075,9 +1075,10 @@ thread id.  If a prefix is given, crypto processing is toggled."\r
108 >       (define-key map "h" 'notmuch-show-toggle-headers)\r
109 >       (define-key map "-" 'notmuch-show-remove-tag)\r
110 >       (define-key map "+" 'notmuch-show-add-tag)\r
111 > -     (define-key map "x" 'notmuch-show-archive-thread-then-exit)\r
112 > -     (define-key map "a" 'notmuch-show-archive-message-then-next)\r
113 > +     (define-key map "X" 'notmuch-show-archive-thread-then-exit)\r
114 > +     (define-key map "x" 'notmuch-show-archive-message-then-next-or-exit)\r
115 >       (define-key map "A" 'notmuch-show-archive-thread-then-next)\r
116 > +     (define-key map "a" 'notmuch-show-archive-message-then-next-or-next-thread)\r
117 >       (define-key map "N" 'notmuch-show-next-message)\r
118 >       (define-key map "P" 'notmuch-show-previous-message)\r
119 >       (define-key map "n" 'notmuch-show-next-open-message)\r
120 > @@ -1417,7 +1418,8 @@ thread, navigate to the next thread in the parent search buffer."\r
121 >  \r
122 >  If a prefix argument is given and this is the last open message\r
123 >  in the thread, navigate to the next thread in the parent search\r
124 > -buffer."\r
125 > +buffer. Return t if there was a next open message in the thread\r
126 > +to show, nil otherwise."\r
127 >    (interactive "P")\r
128 >    (let (r)\r
129 >      (while (and (setq r (notmuch-show-goto-message-next))\r
130 > @@ -1428,7 +1430,8 @@ buffer."\r
131 >         (notmuch-show-message-adjust))\r
132 >        (if pop-at-end\r
133 >         (notmuch-show-next-thread)\r
134 > -     (goto-char (point-max))))))\r
135 > +     (goto-char (point-max))))\r
136 > +    r))\r
137 >  \r
138 >  (defun notmuch-show-previous-open-message ()\r
139 >    "Show the previous open message."\r
140 > @@ -1645,12 +1648,25 @@ removed)."\r
141 >        (notmuch-show-add-tag "inbox")\r
142 >      (notmuch-show-remove-tag "inbox")))\r
143 >  \r
144 > -(defun notmuch-show-archive-message-then-next ()\r
145 > -  "Archive the current message, then show the next open message in the current thread."\r
146 > +(defun notmuch-show-archive-message-then-next-or-exit ()\r
147 > +  "Archive the current message, then show the next open message in the current thread.\r
148 > +\r
149 > +If at the last open message in the current thread, then exit back\r
150 > +to search results."\r
151 >    (interactive)\r
152 >    (notmuch-show-archive-message)\r
153 >    (notmuch-show-next-open-message t))\r
154 >  \r
155 > +(defun notmuch-show-archive-message-then-next-or-next-thread ()\r
156 > +  "Archive the current message, then show the next open message in the current thread.\r
157 > +\r
158 > +If at the last open message in the current thread, then show next\r
159 > +thread from search."\r
160 > +  (interactive)\r
161 > +  (notmuch-show-archive-message)\r
162 > +  (unless (notmuch-show-next-open-message)\r
163 > +    (notmuch-show-next-thread t)))\r
164 > +\r
165 >  (defun notmuch-show-stash-cc ()\r
166 >    "Copy CC field of current message to kill-ring."\r
167 >    (interactive)\r
168 > -- \r
169 > 1.7.5.4\r
170\r
171 > _______________________________________________\r
172 > notmuch mailing list\r
173 > notmuch@notmuchmail.org\r
174 > http://notmuchmail.org/mailman/listinfo/notmuch\r