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 B0CA7429E5F for ; Wed, 18 Jan 2012 00:56:35 -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 4B9L2dtiKzYk for ; Wed, 18 Jan 2012 00:56:35 -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 F1448429E27 for ; Wed, 18 Jan 2012 00:56:34 -0800 (PST) Received: by wibhr12 with SMTP id hr12so4221250wib.26 for ; Wed, 18 Jan 2012 00:56:33 -0800 (PST) Received: by 10.180.76.235 with SMTP id n11mr29711418wiw.11.1326876993831; Wed, 18 Jan 2012 00:56:33 -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 d9sm21287197wiy.2.2012.01.18.00.56.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Jan 2012 00:56:32 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id 97EB9A0397; Wed, 18 Jan 2012 08:56:30 +0000 (GMT) To: Jameson Graef Rollins , Notmuch Mail Subject: Re: [PATCH 4/6] emacs: add option to notmuch-show-next-open-message to pop out to parent buffer if at end In-Reply-To: <87aa5lqtww.fsf@servo.finestructure.net> References: <871uqy19yo.fsf@servo.finestructure.net> <1326823531-14549-1-git-send-email-jrollins@finestructure.net> <1326823531-14549-2-git-send-email-jrollins@finestructure.net> <1326823531-14549-3-git-send-email-jrollins@finestructure.net> <1326823531-14549-4-git-send-email-jrollins@finestructure.net> <87aa5lqtww.fsf@servo.finestructure.net> User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Wed, 18 Jan 2012 08:56:26 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: Wed, 18 Jan 2012 08:56:35 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 18 Jan 2012 00:47:11 -0800, Jameson Graef Rollins wrote: > > > (while (and (setq r (notmuch-show-goto-message-next)) > > > (not (notmuch-show-message-visible-p)))) > > > (if r > > > (progn > > > (notmuch-show-mark-read) > > > (notmuch-show-message-adjust)) > > > - (goto-char (point-max))))) > > > + (if (and parent-buffer pop-at-end) > > > + (progn > > > + (kill-this-buffer) > > > + (switch-to-buffer parent-buffer) > > > + (forward-line 1)) > > > + (goto-char (point-max)))))) > >=20 > > Can you explain in words how this is expected to behave please? >=20 > Do you see a problem? Not a problem, just trying to understand the behaviour (I have to revive my advance/rewind patches at some point). > If there is not another message, but there is a parent buffer and the > pop-at-end variable is set, kill this buffer, go the parent, and move to > the next thread. Otherwise, go to the max point in the buffer. I'm used to the cursor going to the bottom of the thread to let me know that I reached the end, then I hit 'space' and move on to the next thread. Will that behaviour be retained with this patch? (Well, including your other patch which seemed to set `pop-at-end'.) It's one of those things that I have to try out to understand properly I expect. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8WiToACgkQaezQq/BJZRYYBgCfaiztFuuQHWLGVECXcTTySd5U JwoAnA84p0NTA9aZlwF8i1POrNZ5XcYw =SPO1 -----END PGP SIGNATURE----- --=-=-=--