--- /dev/null
+Return-Path: <dme@dme.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 635A0429E5B\r
+ for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 22:18:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id sx1vmGhtKRDq for <notmuch@notmuchmail.org>;\r
+ Mon, 30 Jan 2012 22:18:03 -0800 (PST)\r
+Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
+ [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ C757F429E34 for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 22:18:02 -0800\r
+ (PST)\r
+Received: by wgbdt12 with SMTP id dt12so4817652wgb.2\r
+ for <notmuch@notmuchmail.org>; Mon, 30 Jan 2012 22:18:01 -0800 (PST)\r
+Received: by 10.180.84.105 with SMTP id x9mr1445693wiy.19.1327990681616;\r
+ Mon, 30 Jan 2012 22:18:01 -0800 (PST)\r
+Received: from hotblack-desiato.hh.sledj.net\r
+ (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
+ by mx.google.com with ESMTPS id fr8sm59678987wib.10.2012.01.30.22.17.59\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Mon, 30 Jan 2012 22:18:00 -0800 (PST)\r
+Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
+ id 71D6F9FDD7; Tue, 31 Jan 2012 06:17:58 +0000 (GMT)\r
+To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 5/5] emacs: Retain the state of the buffer during\r
+ `notmuch-show-refresh-view'.\r
+In-Reply-To: <87k449vt84.fsf@qmul.ac.uk>\r
+References: <1327486729-18052-1-git-send-email-dme@dme.org>\r
+ <1327941064-20027-1-git-send-email-dme@dme.org>\r
+ <1327941064-20027-6-git-send-email-dme@dme.org>\r
+ <87k449vt84.fsf@qmul.ac.uk>\r
+User-Agent: Notmuch/0.11+133~gdd93bad (http://notmuchmail.org) Emacs/24.0.92.1\r
+ (x86_64-pc-linux-gnu)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Tue, 31 Jan 2012 06:17:58 +0000\r
+Message-ID: <cunbopkjsyx.fsf@hotblack-desiato.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 31 Jan 2012 06:18:03 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Mon, 30 Jan 2012 20:19:23 +0000, Mark Walters <markwalters1009@gmail.com=\r
+> wrote:\r
+> The first is that I currently sometimes use =3D (that is\r
+> notmuch-show-refresh-view) as a way to go back to the original state (ie\r
+> which messages are open and back to the first message) so I am not sure\r
+> the keep state version should completely replace the old one. (Maybe\r
+> there is an alternative way to achieve the same effect that I don't\r
+> know!)\r
+\r
+Thinking about it afterwards, I agree. That is:\r
+ - '=3D' should behave as though the buffer was remade anew,\r
+ - the toggle commands should retain the state.\r
+\r
+> Secondly in\r
+>=20\r
+> > (defun notmuch-show-refresh-view ()\r
+> > "Refresh the current view.\r
+> >=20=20\r
+> > Refreshes the current view, observing changes in cryptographic prefere=\r
+nces."\r
+> > (interactive)\r
+> > - (let ((inhibit-read-only t))\r
+> > - (erase-buffer))\r
+> > - (notmuch-show-worker notmuch-show-thread-id notmuch-show-parent-buff=\r
+er\r
+> > - notmuch-show-query-context))\r
+> > + (let ((inhibit-read-only t)\r
+> > + (state (notmuch-show-capture-state)))\r
+> > + (erase-buffer)\r
+> > + (notmuch-show-worker notmuch-show-thread-id notmuch-show-parent-bu=\r
+ffer\r
+> > + notmuch-show-query-context)\r
+> > + (notmuch-show-apply-state state)))\r
+>=20\r
+> how would you feel about a (notmuch-show-message-adjust) at the end?\r
+\r
+Agreed.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iEYEARECAAYFAk8nh5YACgkQaezQq/BJZRbqYQCeK1+8GwopR8+aueOjazMnlS0R\r
+RrAAnRRrD4GGZXJyyYW4ZVDOsvkztTsU\r
+=uhk7\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r