1 Return-Path: <seb.binet@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 3C311429E25
\r
6 for <notmuch@notmuchmail.org>; Tue, 21 Jun 2011 12:28:09 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Cc"
\r
10 X-Spam-Score: -0.789
\r
12 X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5
\r
13 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
14 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01]
\r
16 Received: from olra.theworths.org ([127.0.0.1])
\r
17 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
18 with ESMTP id Bex19KD44ToR for <notmuch@notmuchmail.org>;
\r
19 Tue, 21 Jun 2011 12:28:07 -0700 (PDT)
\r
20 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
21 [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
22 (No client certificate requested)
\r
23 by olra.theworths.org (Postfix) with ESMTPS id C0CA7431FB6
\r
24 for <notmuch@notmuchmail.org>; Tue, 21 Jun 2011 12:28:06 -0700 (PDT)
\r
25 Received: by wyb28 with SMTP id 28so74518wyb.26
\r
26 for <notmuch@notmuchmail.org>; Tue, 21 Jun 2011 12:28:05 -0700 (PDT)
\r
27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
28 h=domainkey-signature:from:to:cc:cc:subject:in-reply-to:references
\r
29 :user-agent:date:message-id:mime-version:content-type;
\r
30 bh=Ih3TLD7xDNIts2ZcQzjuBaafgzmSBPvdiWMDnD7i3s0=;
\r
31 b=unXZcuNJaYKd4uQN3N96DuZBdLJF78IAQICkBxUbKDNa7ya35jIIL9RhrqQ1c23fnr
\r
32 03BARH9xSlKbkAg/b89g1wNVtHbW4NZh0MwDXuniPmSktwVYHE1ArhwTvV+wKHwHgXyJ
\r
33 EFtNMWjnsV4WSdru57ABSpvREnPbEt8713Qdo=
\r
34 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
35 h=from:to:cc:subject:in-reply-to:references:user-agent:date
\r
36 :message-id:mime-version:content-type;
\r
37 b=P4xTDCkbLyV2wK07PpxMS9W9XyLIkFBHyCOuTKqZOrpf79WoBHd2UlEd5NT+IiOnyV
\r
38 CN/MRMM4wVdn0GgQGPPo8Qy+geD5aPQPbGhgd6n2ORkQ2RxVEqYE5QvwgCrg9mGxQ1T7
\r
39 I/pBTmJd4+eWII53+sSfDHdgG1eiUEHA34DR4=
\r
40 Received: by 10.227.143.14 with SMTP id s14mr6199451wbu.11.1308684484965;
\r
41 Tue, 21 Jun 2011 12:28:04 -0700 (PDT)
\r
42 Received: from localhost (pc-88068.lal.in2p3.fr [134.158.88.68])
\r
43 by mx.google.com with ESMTPS id c17sm4244340wbh.63.2011.06.21.12.28.03
\r
44 (version=TLSv1/SSLv3 cipher=OTHER);
\r
45 Tue, 21 Jun 2011 12:28:03 -0700 (PDT)
\r
46 From: Sebastien Binet <seb.binet@gmail.com>
\r
47 To: Jameson Graef Rollins <jrollins@finestructure.net>
\r
48 Subject: Re: bug in emacs-ui ?
\r
49 In-Reply-To: <87hb7jg2rl.fsf@servo.factory.finestructure.net>
\r
50 References: <8739j5rn2d.fsf@cern.ch>
\r
51 <87pqm8cz4f.fsf@servo.factory.finestructure.net>
\r
52 <87oc1spkkc.fsf@cern.ch>
\r
53 <87mxhccw9v.fsf@servo.factory.finestructure.net>
\r
54 <87hb7kpi7e.fsf@cern.ch>
\r
55 <87fwn4cm9q.fsf@servo.factory.finestructure.net>
\r
56 <BANLkTin=viaP4US-=qj2x7BQOKhGaLeaHw@mail.gmail.com>
\r
57 <87hb7jg2rl.fsf@servo.factory.finestructure.net>
\r
58 User-Agent: Notmuch/ (http://notmuchmail.org) Emacs/23.3.1
\r
59 (x86_64-unknown-linux-gnu)
\r
60 Date: Tue, 21 Jun 2011 21:26:25 +0200
\r
61 Message-ID: <878vsv9eam.fsf@cern.ch>
\r
63 Content-Type: multipart/signed; boundary="=-=-=";
\r
64 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
65 Cc: , notmuch@notmuchmail.org
\r
66 X-BeenThere: notmuch@notmuchmail.org
\r
67 X-Mailman-Version: 2.1.13
\r
69 List-Id: "Use and development of the notmuch mail system."
\r
70 <notmuch.notmuchmail.org>
\r
71 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
73 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
74 List-Post: <mailto:notmuch@notmuchmail.org>
\r
75 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
76 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
77 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
78 X-List-Received-Date: Tue, 21 Jun 2011 19:28:09 -0000
\r
81 Content-Transfer-Encoding: quoted-printable
\r
85 On Mon, 20 Jun 2011 22:41:18 -0700, Jameson Graef Rollins <jrollins@finestr=
\r
87 Non-text part: multipart/signed
\r
88 > On Tue, 21 Jun 2011 02:01:17 +0200, Sebastien Binet <seb.binet@gmail.com>=
\r
90 > > and I checked there were no lingering .el files...
\r
93 > > any way to tell which notmuch-emacs-ui I am actually using ? (I am a n=
\r
95 > > when comes to hacking lisp)
\r
97 > Hey, Sebastien. You can determine the loaded version of a library from
\r
98 > within emacs with the follow command:
\r
100 > M-x locate-library notmuch
\r
102 > It's also good to know how many notmuch instances are installed on your
\r
103 > system. For instance, I have a system-wide installation, a "personal"
\r
104 > installation, the build currently in the source tree, etc. Depending on
\r
105 > the options I supply to emacs at startup, I could run a variety of
\r
108 so, it seems the problem comes from:
\r
110 (defun notmuch-show-advance-and-archive ()
\r
111 "Advance through thread and archive."
\r
113 (let ((end-of-this-message (notmuch-show-message-bottom)))
\r
115 ;; Ideally we would test `end-of-this-message' against the result
\r
116 ;; of `window-end', but that doesn't account for the fact that
\r
117 ;; the end of the message might be hidden, so we have to actually
\r
118 ;; go to the end, walk back over invisible text and then see if
\r
119 ;; point is visible.
\r
121 (message "pt00: %s" (point))
\r
122 (goto-char (- end-of-this-message 1))
\r
123 (message "pt01: %s" (point))
\r
124 (notmuch-show-move-past-invisible-backward)
\r
125 (message "msg-end: %s" end-of-this-message)
\r
126 (message "pt11: %s" (point))
\r
127 ;;(goto-char (- (point) 400))
\r
128 (message "pt12: %s" (point))
\r
129 (> (point) (window-end)))
\r
130 (message "point: %s" (point))
\r
131 (message "window-end: %s" (window-end))
\r
132 ;; The bottom of this message is not visible - scroll.
\r
134 ((not (=3D end-of-this-message (point-max)))
\r
135 ;; This is not the last message - move to the next visible one.
\r
136 (notmuch-show-next-open-message))
\r
138 where I've added some good ol' print "foo" debugging.
\r
140 using the message from the openmpi mailing list I sent earlier and
\r
141 pressing tab, I get in the *Messages* buffer:
\r
143 For information about GNU Emacs and the GNU system, type C-h C-a.
\r
146 msg-end: #<marker at 1393 in *[Open MPI Announce] Open MPI...>
\r
151 notmuch-show-advance-and-archive: End of buffer=20=20=20=20=20=20=20=20=20=
\r
152 =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=
\r
153 =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=
\r
154 =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=
\r
155 =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=
\r
156 =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=
\r
157 =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=
\r
158 =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=
\r
160 ie: it would seem the notmuch-show-move-past-invisible-backward does
\r
161 *not* move the point up to just before the hidden signature (and does
\r
162 not move it at all.)
\r
164 if I uncomment the goto-char to -400 line, everything's fine. (400 is
\r
165 roughly the length of the hidden signature)
\r
167 well, this is just an educated guess from an emacs-lisp programmer
\r
170 fyi: I am using emacs-23.3
\r
171 no patch were applied on top of the vanilla sources:
\r
172 http://projects.archlinux.org/svntogit/packages.git/tree/emacs/repos/extra-=
\r
178 Content-Type: application/pgp-signature
\r
180 -----BEGIN PGP SIGNATURE-----
\r
181 Version: GnuPG v1.4.11 (GNU/Linux)
\r
183 iEYEARECAAYFAk4A8GEACgkQPj4AVbsZCCZJCgCg2K3VMtSmtrHRpc3jrCmllbWX
\r
184 Sa0AoIepe6Ls+oOKYz7RZlPrfm6XYdxQ
\r
186 -----END PGP SIGNATURE-----
\r