1 Return-Path: <aaronecay@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 6E123431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 06:25:13 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id HLyoxO5ISb4f for <notmuch@notmuchmail.org>;
\r
17 Thu, 22 Dec 2011 06:25:11 -0800 (PST)
\r
18 Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com
\r
19 [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 1AB3F431FB6
\r
22 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 06:25:11 -0800 (PST)
\r
23 Received: by qcha6 with SMTP id a6so6305249qch.26
\r
24 for <notmuch@notmuchmail.org>; Thu, 22 Dec 2011 06:25:09 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:subject:date:message-id:x-mailer:in-reply-to:references;
\r
27 bh=D1uxEqtwbhBuPz6dNDg441PPP7MPFMtWElmZzo6PkIA=;
\r
28 b=nRBR8VJ/0B7VLUNz8+sA+SuZhzjcetfd39DpDu6FlQzHmz9vHyx8SKZDYwvfB1GQ4q
\r
29 wM0XPVYG+an5vRbbakJKbG2Z0XgHb8/HK2Th4jCO1XTym8md/0GO1ZjW8smVocPv6FY/
\r
30 JXnE7j2Gu+hktuW5tyUU6UBmyR/owbbf5UuXU=
\r
31 Received: by 10.224.18.66 with SMTP id v2mr13931723qaa.91.1324563909172;
\r
32 Thu, 22 Dec 2011 06:25:09 -0800 (PST)
\r
33 Received: from localhost.localdomain (24-158-179-191.dhcp.jcsn.tn.charter.com.
\r
35 by mx.google.com with ESMTPS id ev4sm15250922qab.9.2011.12.22.06.25.02
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Thu, 22 Dec 2011 06:25:02 -0800 (PST)
\r
38 From: Aaron Ecay <aaronecay@gmail.com>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH] emacs: fix off-by-one bug in notmuch-show-archive
\r
41 Date: Thu, 22 Dec 2011 09:24:20 -0500
\r
42 Message-Id: <1324563860-21986-1-git-send-email-aaronecay@gmail.com>
\r
43 X-Mailer: git-send-email 1.7.8
\r
44 In-Reply-To: <m2vcp9c9bk.fsf@kcals.intra.maillard.im>
\r
45 References: <m2vcp9c9bk.fsf@kcals.intra.maillard.im>
\r
46 X-BeenThere: notmuch@notmuchmail.org
\r
47 X-Mailman-Version: 2.1.13
\r
49 List-Id: "Use and development of the notmuch mail system."
\r
50 <notmuch.notmuchmail.org>
\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
54 List-Post: <mailto:notmuch@notmuchmail.org>
\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
58 X-List-Received-Date: Thu, 22 Dec 2011 14:25:13 -0000
\r
60 Text properties change between characters; prev-s-c-property-change
\r
61 returns the position after the change. Thus, it is still inside the
\r
64 emacs/notmuch-show.el | 5 +++--
\r
65 1 files changed, 3 insertions(+), 2 deletions(-)
\r
67 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
68 index f52f233..905c9ec 100644
\r
69 --- a/emacs/notmuch-show.el
\r
70 +++ b/emacs/notmuch-show.el
\r
71 @@ -1169,8 +1169,9 @@ current window), advance to the next open message."
\r
73 (while (invisible-p visible-end-of-this-message)
\r
74 (setq visible-end-of-this-message
\r
75 - (previous-single-char-property-change visible-end-of-this-message
\r
78 + (1- (previous-single-char-property-change
\r
79 + visible-end-of-this-message 'invisible)))))
\r
81 ;; Ideally we would test `end-of-this-message' against the result
\r
82 ;; of `window-end', but that doesn't account for the fact that
\r