1 Return-Path: <kanru@anar.kanru.info>
\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 676F8431FBD
\r
6 for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 22:14:49 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id pr1L2tthBTyb for <notmuch@notmuchmail.org>;
\r
11 Mon, 30 Nov 2009 22:14:48 -0800 (PST)
\r
12 Received: from msr32.hinet.net (msr32.hinet.net [168.95.4.132])
\r
13 by olra.theworths.org (Postfix) with ESMTP id F3A74431FAE
\r
14 for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 22:14:47 -0800 (PST)
\r
15 Received: from anar.kanru.info ([203.74.21.24])
\r
16 by msr32.hinet.net (8.9.3/8.9.3) with ESMTP id OAA17467
\r
17 for <notmuch@notmuchmail.org>; Tue, 1 Dec 2009 14:14:45 +0800 (CST)
\r
18 Received: from kanru (uid 1000) (envelope-from kanru@anar.kanru.info) id 2183
\r
19 by anar.kanru.info (DragonFly Mail Agent)
\r
20 Tue, 01 Dec 2009 14:14:35 +0800
\r
21 From: Kan-Ru Chen <kanru@kanru.info>
\r
22 To: notmuch@notmuchmail.org
\r
23 Date: Tue, 1 Dec 2009 14:13:53 +0800
\r
24 Message-Id: <1259648033-30653-3-git-send-email-kanru@kanru.info>
\r
25 X-Mailer: git-send-email 1.6.5.3
\r
26 In-Reply-To: <1259648033-30653-2-git-send-email-kanru@kanru.info>
\r
27 References: <1259648033-30653-1-git-send-email-kanru@kanru.info>
\r
28 <1259648033-30653-2-git-send-email-kanru@kanru.info>
\r
29 Subject: [notmuch] [PATCH 3/3] notmuch.el: Use emacs built-in forward-button
\r
31 X-BeenThere: notmuch@notmuchmail.org
\r
32 X-Mailman-Version: 2.1.12
\r
34 List-Id: "Use and development of the notmuch mail system."
\r
35 <notmuch.notmuchmail.org>
\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
37 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
39 List-Post: <mailto:notmuch@notmuchmail.org>
\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
42 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
43 X-List-Received-Date: Tue, 01 Dec 2009 06:14:49 -0000
\r
45 There are built-ins, so why not use them?
\r
47 Signed-off-by: Kan-Ru Chen <kanru@kanru.info>
\r
50 1 files changed, 2 insertions(+), 2 deletions(-)
\r
52 diff --git a/notmuch.el b/notmuch.el
\r
53 index 5b8513c..4d08c83 100644
\r
56 @@ -547,12 +547,12 @@ which this thread was originally shown."
\r
57 (defun notmuch-show-next-button ()
\r
58 "Advance point to the next button in the buffer."
\r
60 - (goto-char (button-start (next-button (point)))))
\r
61 + (forward-button 1))
\r
63 (defun notmuch-show-previous-button ()
\r
64 "Move point back to the previous button in the buffer."
\r
66 - (goto-char (button-start (previous-button (point)))))
\r
67 + (backward-button 1))
\r
69 (defun notmuch-toggle-invisible-action (cite-button)
\r
70 (let ((invis-spec (button-get button 'invisibility-spec)))
\r