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 670DB431FD0 for ; Tue, 24 May 2011 15:57:40 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 26HMLVFZ7Dmp for ; Tue, 24 May 2011 15:57:40 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id F23E1431FB6 for ; Tue, 24 May 2011 15:57:39 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id EFC0B29A482; Tue, 24 May 2011 15:57:37 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id DF19A25417E; Tue, 24 May 2011 15:57:37 -0700 (PDT) From: Carl Worth To: Austin Clements , Dmitry Kurochkin Subject: Re: [PATCH] Save and restore point explicitly in `notmuch-wash-toggle-invisible-action'. In-Reply-To: References: <1306090675-26982-1-git-send-email-dmitry.kurochkin@gmail.com> <1306164587-20326-1-git-send-email-dmitry.kurochkin@gmail.com> <87oc2rlujb.fsf@yoom.home.cworth.org> <8762ozrfrr.fsf@gmail.com> <87oc2rvjvj.fsf@yoom.home.cworth.org> <871uznrbh5.fsf@gmail.com> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Tue, 24 May 2011 15:57:32 -0700 Message-ID: <87fwo3btb7.fsf@yoom.home.cworth.org> 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: Tue, 24 May 2011 22:57:40 -0000 --=-=-= On Tue, 24 May 2011 18:43:41 -0400, Austin Clements wrote: > Saving point this way is a bit dangerous, though. For example, if > you're near the end of the buffer and shorten the label, attempting to > restore the point could result in an error (or, a more benign example: > the cursor could wind up outside the label so pressing RET repeatedly > won't toggle it). Without the patch to change save-excursion to an integer, point is already moving outside the button, (so that repeatedly pressing RET doesn't toggle). I'm exploring a proper fix now to get reliable behavior. -Carl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3cN9wACgkQ6JDdNq8qSWg0IACgoMLhCretCpHFc85vRwuJiDw3 CggAn3CIKV/iHpqQ2VggjeaTgn58AEka =Q5Ni -----END PGP SIGNATURE----- --=-=-=--