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 676F8431FBD for ; Mon, 30 Nov 2009 22:14:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 pr1L2tthBTyb for ; Mon, 30 Nov 2009 22:14:48 -0800 (PST) Received: from msr32.hinet.net (msr32.hinet.net [168.95.4.132]) by olra.theworths.org (Postfix) with ESMTP id F3A74431FAE for ; Mon, 30 Nov 2009 22:14:47 -0800 (PST) Received: from anar.kanru.info ([203.74.21.24]) by msr32.hinet.net (8.9.3/8.9.3) with ESMTP id OAA17467 for ; Tue, 1 Dec 2009 14:14:45 +0800 (CST) Received: from kanru (uid 1000) (envelope-from kanru@anar.kanru.info) id 2183 by anar.kanru.info (DragonFly Mail Agent) Tue, 01 Dec 2009 14:14:35 +0800 From: Kan-Ru Chen To: notmuch@notmuchmail.org Date: Tue, 1 Dec 2009 14:13:53 +0800 Message-Id: <1259648033-30653-3-git-send-email-kanru@kanru.info> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <1259648033-30653-2-git-send-email-kanru@kanru.info> References: <1259648033-30653-1-git-send-email-kanru@kanru.info> <1259648033-30653-2-git-send-email-kanru@kanru.info> Subject: [notmuch] [PATCH 3/3] notmuch.el: Use emacs built-in forward-button and backward-button X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 01 Dec 2009 06:14:49 -0000 There are built-ins, so why not use them? Signed-off-by: Kan-Ru Chen --- notmuch.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notmuch.el b/notmuch.el index 5b8513c..4d08c83 100644 --- a/notmuch.el +++ b/notmuch.el @@ -547,12 +547,12 @@ which this thread was originally shown." (defun notmuch-show-next-button () "Advance point to the next button in the buffer." (interactive) - (goto-char (button-start (next-button (point))))) + (forward-button 1)) (defun notmuch-show-previous-button () "Move point back to the previous button in the buffer." (interactive) - (goto-char (button-start (previous-button (point))))) + (backward-button 1)) (defun notmuch-toggle-invisible-action (cite-button) (let ((invis-spec (button-get button 'invisibility-spec))) -- 1.6.5.3