Re: Flat search and threaded views
[notmuch-archives.git] / d5 / df28487c54fbec8a3d05e27834629897028227
1 Return-Path: <dme@dme.org>\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 635A0429E5B\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 22:18:03 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 sx1vmGhtKRDq for <notmuch@notmuchmail.org>;\r
16         Mon, 30 Jan 2012 22:18:03 -0800 (PST)\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
18  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  C757F429E34    for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 22:18:02 -0800\r
21  (PST)\r
22 Received: by wgbdt12 with SMTP id dt12so4817652wgb.2\r
23         for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 22:18:01 -0800 (PST)\r
24 Received: by 10.180.84.105 with SMTP id x9mr1445693wiy.19.1327990681616;\r
25         Mon, 30 Jan 2012 22:18:01 -0800 (PST)\r
26 Received: from hotblack-desiato.hh.sledj.net\r
27         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
28         by mx.google.com with ESMTPS id fr8sm59678987wib.10.2012.01.30.22.17.59\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Mon, 30 Jan 2012 22:18:00 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id 71D6F9FDD7; Tue, 31 Jan 2012 06:17:58 +0000 (GMT)\r
33 To: Mark Walters <markwalters1009@gmail.com>, 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: <87k449vt84.fsf@qmul.ac.uk>\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         <87k449vt84.fsf@qmul.ac.uk>\r
41 User-Agent: Notmuch/0.11+133~gdd93bad (http://notmuchmail.org) Emacs/24.0.92.1\r
42         (x86_64-pc-linux-gnu)\r
43 From: David Edmondson <dme@dme.org>\r
44 Date: Tue, 31 Jan 2012 06:17:58 +0000\r
45 Message-ID: <cunbopkjsyx.fsf@hotblack-desiato.hh.sledj.net>\r
46 MIME-Version: 1.0\r
47 Content-Type: multipart/signed; boundary="=-=-=";\r
48         micalg=pgp-sha1; protocol="application/pgp-signature"\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Tue, 31 Jan 2012 06:18:03 -0000\r
62 \r
63 --=-=-=\r
64 Content-Type: text/plain\r
65 Content-Transfer-Encoding: quoted-printable\r
66 \r
67 On Mon, 30 Jan 2012 20:19:23 +0000, Mark Walters <markwalters1009@gmail.com=\r
68 > wrote:\r
69 > The first is that I currently sometimes use =3D (that is\r
70 > notmuch-show-refresh-view) as a way to go back to the original state (ie\r
71 > which messages are open and back to the first message) so I am not sure\r
72 > the keep state version should completely replace the old one. (Maybe\r
73 > there is an alternative way to achieve the same effect that I don't\r
74 > know!)\r
75 \r
76 Thinking about it afterwards, I agree. That is:\r
77     - '=3D' should behave as though the buffer was remade anew,\r
78     - the toggle commands should retain the state.\r
79 \r
80 > Secondly in\r
81 >=20\r
82 > >  (defun notmuch-show-refresh-view ()\r
83 > >    "Refresh the current view.\r
84 > >=20=20\r
85 > >  Refreshes the current view, observing changes in cryptographic prefere=\r
86 nces."\r
87 > >    (interactive)\r
88 > > -  (let ((inhibit-read-only t))\r
89 > > -    (erase-buffer))\r
90 > > -  (notmuch-show-worker notmuch-show-thread-id notmuch-show-parent-buff=\r
91 er\r
92 > > -                  notmuch-show-query-context))\r
93 > > +  (let ((inhibit-read-only t)\r
94 > > +   (state (notmuch-show-capture-state)))\r
95 > > +    (erase-buffer)\r
96 > > +    (notmuch-show-worker notmuch-show-thread-id notmuch-show-parent-bu=\r
97 ffer\r
98 > > +                    notmuch-show-query-context)\r
99 > > +    (notmuch-show-apply-state state)))\r
100 >=20\r
101 > how would you feel about a (notmuch-show-message-adjust) at the end?\r
102 \r
103 Agreed.\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 iEYEARECAAYFAk8nh5YACgkQaezQq/BJZRbqYQCeK1+8GwopR8+aueOjazMnlS0R\r
112 RrAAnRRrD4GGZXJyyYW4ZVDOsvkztTsU\r
113 =uhk7\r
114 -----END PGP SIGNATURE-----\r
115 --=-=-=--\r