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 3C311429E25 for ; Tue, 21 Jun 2011 12:28:09 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Cc" X-Spam-Flag: NO X-Spam-Score: -0.789 X-Spam-Level: X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 Bex19KD44ToR for ; Tue, 21 Jun 2011 12:28:07 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C0CA7431FB6 for ; Tue, 21 Jun 2011 12:28:06 -0700 (PDT) Received: by wyb28 with SMTP id 28so74518wyb.26 for ; Tue, 21 Jun 2011 12:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=Ih3TLD7xDNIts2ZcQzjuBaafgzmSBPvdiWMDnD7i3s0=; b=unXZcuNJaYKd4uQN3N96DuZBdLJF78IAQICkBxUbKDNa7ya35jIIL9RhrqQ1c23fnr 03BARH9xSlKbkAg/b89g1wNVtHbW4NZh0MwDXuniPmSktwVYHE1ArhwTvV+wKHwHgXyJ EFtNMWjnsV4WSdru57ABSpvREnPbEt8713Qdo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; b=P4xTDCkbLyV2wK07PpxMS9W9XyLIkFBHyCOuTKqZOrpf79WoBHd2UlEd5NT+IiOnyV CN/MRMM4wVdn0GgQGPPo8Qy+geD5aPQPbGhgd6n2ORkQ2RxVEqYE5QvwgCrg9mGxQ1T7 I/pBTmJd4+eWII53+sSfDHdgG1eiUEHA34DR4= Received: by 10.227.143.14 with SMTP id s14mr6199451wbu.11.1308684484965; Tue, 21 Jun 2011 12:28:04 -0700 (PDT) Received: from localhost (pc-88068.lal.in2p3.fr [134.158.88.68]) by mx.google.com with ESMTPS id c17sm4244340wbh.63.2011.06.21.12.28.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2011 12:28:03 -0700 (PDT) From: Sebastien Binet To: Jameson Graef Rollins Subject: Re: bug in emacs-ui ? In-Reply-To: <87hb7jg2rl.fsf@servo.factory.finestructure.net> References: <8739j5rn2d.fsf@cern.ch> <87pqm8cz4f.fsf@servo.factory.finestructure.net> <87oc1spkkc.fsf@cern.ch> <87mxhccw9v.fsf@servo.factory.finestructure.net> <87hb7kpi7e.fsf@cern.ch> <87fwn4cm9q.fsf@servo.factory.finestructure.net> <87hb7jg2rl.fsf@servo.factory.finestructure.net> User-Agent: Notmuch/ (http://notmuchmail.org) Emacs/23.3.1 (x86_64-unknown-linux-gnu) Date: Tue, 21 Jun 2011 21:26:25 +0200 Message-ID: <878vsv9eam.fsf@cern.ch> 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, 21 Jun 2011 19:28:09 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable hi, On Mon, 20 Jun 2011 22:41:18 -0700, Jameson Graef Rollins wrote: Non-text part: multipart/signed > On Tue, 21 Jun 2011 02:01:17 +0200, Sebastien Binet = wrote: > > and I checked there were no lingering .el files... > >=20 > > so... > > any way to tell which notmuch-emacs-ui I am actually using ? (I am a n= ewbie > > when comes to hacking lisp) >=20 > Hey, Sebastien. You can determine the loaded version of a library from > within emacs with the follow command: >=20 > M-x locate-library notmuch >=20 > It's also good to know how many notmuch instances are installed on your > system. For instance, I have a system-wide installation, a "personal" > installation, the build currently in the source tree, etc. Depending on > the options I supply to emacs at startup, I could run a variety of > versions. so, it seems the problem comes from: (defun notmuch-show-advance-and-archive () "Advance through thread and archive." (interactive) (let ((end-of-this-message (notmuch-show-message-bottom))) (cond ;; Ideally we would test `end-of-this-message' against the result ;; of `window-end', but that doesn't account for the fact that ;; the end of the message might be hidden, so we have to actually ;; go to the end, walk back over invisible text and then see if ;; point is visible. ((save-excursion (message "pt00: %s" (point)) (goto-char (- end-of-this-message 1)) (message "pt01: %s" (point)) (notmuch-show-move-past-invisible-backward) (message "msg-end: %s" end-of-this-message) (message "pt11: %s" (point)) ;;(goto-char (- (point) 400)) (message "pt12: %s" (point)) (> (point) (window-end))) (message "point: %s" (point)) (message "window-end: %s" (window-end)) ;; The bottom of this message is not visible - scroll. (scroll-up nil)) ((not (=3D end-of-this-message (point-max))) ;; This is not the last message - move to the next visible one. (notmuch-show-next-open-message)) where I've added some good ol' print "foo" debugging. using the message from the openmpi mailing list I sent earlier and pressing tab, I get in the *Messages* buffer: For information about GNU Emacs and the GNU system, type C-h C-a. pt00: 1 pt01: 1392 msg-end: # pt11: 1392 pt12: 1392 point: 1 window-end: 1113 notmuch-show-advance-and-archive: End of buffer=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ie: it would seem the notmuch-show-move-past-invisible-backward does *not* move the point up to just before the hidden signature (and does not move it at all.) if I uncomment the goto-char to -400 line, everything's fine. (400 is roughly the length of the hidden signature) well, this is just an educated guess from an emacs-lisp programmer complete newbie. fyi: I am using emacs-23.3 no patch were applied on top of the vanilla sources: http://projects.archlinux.org/svntogit/packages.git/tree/emacs/repos/extra-= x86_64/PKGBUILD =2Ds --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4A8GEACgkQPj4AVbsZCCZJCgCg2K3VMtSmtrHRpc3jrCmllbWX Sa0AoIepe6Ls+oOKYz7RZlPrfm6XYdxQ =mi22 -----END PGP SIGNATURE----- --=-=-=--