Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8971D431FD0 for ; Mon, 26 Dec 2011 02:49:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vBRIun7hPbZd for ; Mon, 26 Dec 2011 02:49:51 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 06DC6431FB6 for ; Mon, 26 Dec 2011 02:49:50 -0800 (PST) Received: by wibhq2 with SMTP id hq2so5282754wib.26 for ; Mon, 26 Dec 2011 02:49:49 -0800 (PST) Received: by 10.180.19.74 with SMTP id c10mr52515570wie.8.1324896589731; Mon, 26 Dec 2011 02:49:49 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id dd4sm56011531wib.1.2011.12.26.02.49.47 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Dec 2011 02:49:48 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 9609CA0765; Mon, 26 Dec 2011 10:49:46 +0000 (GMT) To: Austin Clements Subject: Re: [RFC][PATCH v4] emacs: Re-implement advance/rewind functions of notmuch-show-mode. In-Reply-To: <20111225010635.GG1927@mit.edu> References: <1324665712-2419-1-git-send-email-dme@dme.org> <20111225010635.GG1927@mit.edu> User-Agent: Notmuch/0.10.2+107~ga2d0215 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Mon, 26 Dec 2011 10:49:46 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2011 10:49:51 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 24 Dec 2011 20:06:35 -0500, Austin Clements wrot= e: > Awesome. This looks significantly cleaner. I think this is worth > pushing for the comment you added to notmuch-show-advance alone. Thanks. > This definitely changes the behavior of rewind, but other than one > case I point out below, I think what you have now is much closer to an > inverse of advance. It would be nice to have tests for rewind (looks > like we don't have any right now), but it would seem counterproductive > to write tests for the current rewind only to rewrite them for this > rewind. I'll write some tests. > Tailing whitespace. Will fix. > > + ((=3D start-of-message (point)) > > + ;; The cursor is at the start of the current message - move to > > + ;; the previous open message. > > + (notmuch-show-previous-open-message)) >=20 > This will jump to the beginning of the previous message if I'm at the > beginning of a message. I would expect rewind to show me the end of > the previous message in this case. That would definitely more closely be the inverse of how advance works, but is it the most useful behaviour? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk74UUoACgkQaezQq/BJZRY0EgCfTd7GM9CehP0QMraC/KeIQ11m o8wAnAygHiD2jJddvPaV19dgetFmcGuU =Gyn2 -----END PGP SIGNATURE----- --=-=-=--