1 Return-Path: <dmitry.kurochkin@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 7FE4B429E5B
\r
6 for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 00:14:04 -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 rpwuZ3WEbnx0 for <notmuch@notmuchmail.org>;
\r
17 Tue, 31 Jan 2012 00:14:04 -0800 (PST)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.53]) (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 B7D2F429E34
\r
22 for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 00:14:03 -0800 (PST)
\r
23 Received: by bke11 with SMTP id 11so2268756bke.26
\r
24 for <notmuch@notmuchmail.org>; Tue, 31 Jan 2012 00:14:02 -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:in-reply-to:references:user-agent:date:message-id
\r
27 :mime-version:content-type;
\r
28 bh=uIO2PZBqsOjy7Kqo27A5puKa3XYkhHOEK7BS2vE4WFk=;
\r
29 b=Lkj7hFGSXa9eU7kuNvpB/FvBea5IAYba9SZUcyy8CqcW/vQ3hQv1SiaWuV9yBZJvdH
\r
30 H7c1iyGZbt/8xpyPWzW5ysT3VI2b/uiZZ9j5tWGGWWxnIsEFSiU3Qt+V32xYlz3nOHjV
\r
31 oBorc5/4VNN/JOKepPPVzr8ko9ZP/LFoWjvtg=
\r
32 Received: by 10.205.120.132 with SMTP id fy4mr10371836bkc.23.1327997642462;
\r
33 Tue, 31 Jan 2012 00:14:02 -0800 (PST)
\r
34 Received: from localhost ([91.144.186.21])
\r
35 by mx.google.com with ESMTPS id bw9sm43429001bkb.8.2012.01.31.00.14.01
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Tue, 31 Jan 2012 00:14:01 -0800 (PST)
\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
39 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org
\r
40 Subject: Re: [PATCH 2/2] emacs: Don't move to the next thread unless the
\r
41 cursor is at the end of the buffer.
\r
42 In-Reply-To: <1327996914-9644-3-git-send-email-dme@dme.org>
\r
43 References: <1327996914-9644-1-git-send-email-dme@dme.org>
\r
44 <1327996914-9644-3-git-send-email-dme@dme.org>
\r
45 User-Agent: Notmuch/0.11+139~gd9b7cab (http://notmuchmail.org) Emacs/23.3.1
\r
46 (x86_64-pc-linux-gnu)
\r
47 Date: Tue, 31 Jan 2012 12:12:50 +0400
\r
48 Message-ID: <87bopknvct.fsf@gmail.com>
\r
50 Content-Type: text/plain; charset=us-ascii
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Tue, 31 Jan 2012 08:14:04 -0000
\r
65 On Tue, 31 Jan 2012 08:01:54 +0000, David Edmondson <dme@dme.org> wrote:
\r
66 > When using the spacebar to scroll through a thread, hitting 'space'
\r
67 > when the bottom of the last message is visible should take the cursor
\r
68 > to the end of the buffer rather than immediately archiving the thread
\r
69 > and moving to the next thread.
\r
72 I did not notice this change yet, so +0
\r
74 A style comment below.
\r
76 > emacs/notmuch-show.el | 5 +++++
\r
77 > 1 files changed, 5 insertions(+), 0 deletions(-)
\r
79 > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
80 > index ec72ff8..3f54de0 100644
\r
81 > --- a/emacs/notmuch-show.el
\r
82 > +++ b/emacs/notmuch-show.el
\r
83 > @@ -1319,6 +1319,11 @@ current window), advance to the next open message."
\r
84 > ;; This is not the last message - move to the next visible one.
\r
85 > (notmuch-show-next-open-message))
\r
87 > + ((not (= (point) (point-max)))
\r
88 > + ;; This is the last message, but the cursor is not at the end of
\r
89 > + ;; the buffer. Move it there.
\r
90 > + (goto-char (point-max)))
\r
92 Perhaps `unless' would be better here?
\r
99 > ;; This is the last message - change the return value
\r
104 > _______________________________________________
\r
105 > notmuch mailing list
\r
106 > notmuch@notmuchmail.org
\r
107 > http://notmuchmail.org/mailman/listinfo/notmuch
\r