Re: [PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch...
[notmuch-archives.git] / ae / 5b2719eaa5c68129557f62f461a91426dc5119
1 Return-Path: <m.walters@qmul.ac.uk>\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 38796431E64\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 12:18:22 -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: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 1HV8e93A8y0r for <notmuch@notmuchmail.org>;\r
17         Mon, 30 Jan 2012 12:18:21 -0800 (PST)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 70A2E431FBC\r
22         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 12:18:21 -0800 (PST)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1Rrxg9-0000fG-C7; Mon, 30 Jan 2012 20:18:17 +0000\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
28         helo=localhost)\r
29         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
30         (envelope-from <m.walters@qmul.ac.uk>)\r
31         id 1Rrxg9-0005ZF-4x; Mon, 30 Jan 2012 20:18:17 +0000\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH 5/5] emacs: Retain the state of the buffer during\r
35         `notmuch-show-refresh-view'.\r
36 In-Reply-To: <1327941064-20027-6-git-send-email-dme@dme.org>\r
37 References: <1327486729-18052-1-git-send-email-dme@dme.org>\r
38         <1327941064-20027-1-git-send-email-dme@dme.org>\r
39         <1327941064-20027-6-git-send-email-dme@dme.org>\r
40 User-Agent: Notmuch/0.11+137~g98adc3d (http://notmuchmail.org) Emacs/23.2.1\r
41         (i486-pc-linux-gnu)\r
42 Date: Mon, 30 Jan 2012 20:19:23 +0000\r
43 Message-ID: <87k449vt84.fsf@qmul.ac.uk>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 X-Sender-Host-Address: 94.192.233.223\r
47 X-QM-SPAM-Info: Sender has good ham record.  :)\r
48 X-QM-Body-MD5: 0fcd79af7769ebfd293b4acca4c4f2c0 (of first 20000 bytes)\r
49 X-SpamAssassin-Score: -1.8\r
50 X-SpamAssassin-SpamBar: -\r
51 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
52         determine if it is\r
53         spam. We require at least 5.0 points to mark a message as spam.\r
54         This message scored -1.8 points.\r
55         Summary of the scoring: \r
56         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
57         *      medium trust\r
58         *      [138.37.6.40 listed in list.dnswl.org]\r
59         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
60         provider *      (markwalters1009[at]gmail.com)\r
61         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
62         *      domain\r
63         *  0.5 AWL AWL: From: address is in the auto white-list\r
64 X-QM-Scan-Virus: ClamAV says the message is clean\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Mon, 30 Jan 2012 20:18:22 -0000\r
78 \r
79 On Mon, 30 Jan 2012 16:31:04 +0000, David Edmondson <dme@dme.org> wrote:\r
80 > Record the state of the buffer during `notmuch-show-refresh-view'.\r
81\r
82 > In this context, "state" is defined as:\r
83 >  - the open/closed state of each message,\r
84 >  - the current message.\r
85 \r
86 This looks great! I have two very minor queries one of which may class\r
87 as bikeshedding.\r
88 \r
89 The first is that I currently sometimes use = (that is\r
90 notmuch-show-refresh-view) as a way to go back to the original state (ie\r
91 which messages are open and back to the first message) so I am not sure\r
92 the keep state version should completely replace the old one. (Maybe\r
93 there is an alternative way to achieve the same effect that I don't know!)\r
94 \r
95 Secondly in\r
96 \r
97 >  (defun notmuch-show-refresh-view ()\r
98 >    "Refresh the current view.\r
99 >  \r
100 >  Refreshes the current view, observing changes in cryptographic preferences."\r
101 >    (interactive)\r
102 > -  (let ((inhibit-read-only t))\r
103 > -    (erase-buffer))\r
104 > -  (notmuch-show-worker notmuch-show-thread-id notmuch-show-parent-buffer\r
105 > -                    notmuch-show-query-context))\r
106 > +  (let ((inhibit-read-only t)\r
107 > +     (state (notmuch-show-capture-state)))\r
108 > +    (erase-buffer)\r
109 > +    (notmuch-show-worker notmuch-show-thread-id notmuch-show-parent-buffer\r
110 > +                      notmuch-show-query-context)\r
111 > +    (notmuch-show-apply-state state)))\r
112 \r
113 how would you feel about a (notmuch-show-message-adjust) at the end?\r
114 \r
115 Other than that this is excellent.\r
116 \r
117 Best wishes\r
118 \r
119 Mark\r
120 \r