[notmuch] [PATCH 3/3] notmuch.el: Use emacs built-in forward-button and backward...
authorKan-Ru Chen <kanru@kanru.info>
Tue, 1 Dec 2009 06:13:53 +0000 (14:13 +0800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:47 +0000 (09:35 -0800)
07/b1be8050ea272266596eb25e1fe11a6d90a49d [new file with mode: 0644]

diff --git a/07/b1be8050ea272266596eb25e1fe11a6d90a49d b/07/b1be8050ea272266596eb25e1fe11a6d90a49d
new file mode 100644 (file)
index 0000000..99b06fe
--- /dev/null
@@ -0,0 +1,73 @@
+Return-Path: <kanru@anar.kanru.info>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 676F8431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 22:14:49 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id pr1L2tthBTyb for <notmuch@notmuchmail.org>;\r
+       Mon, 30 Nov 2009 22:14:48 -0800 (PST)\r
+Received: from msr32.hinet.net (msr32.hinet.net [168.95.4.132])\r
+       by olra.theworths.org (Postfix) with ESMTP id F3A74431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 22:14:47 -0800 (PST)\r
+Received: from anar.kanru.info ([203.74.21.24])\r
+       by msr32.hinet.net (8.9.3/8.9.3) with ESMTP id OAA17467\r
+       for <notmuch@notmuchmail.org>; Tue, 1 Dec 2009 14:14:45 +0800 (CST)\r
+Received: from kanru (uid 1000) (envelope-from kanru@anar.kanru.info) id 2183\r
+       by anar.kanru.info (DragonFly Mail Agent)\r
+       Tue, 01 Dec 2009 14:14:35 +0800\r
+From: Kan-Ru Chen <kanru@kanru.info>\r
+To: notmuch@notmuchmail.org\r
+Date: Tue,  1 Dec 2009 14:13:53 +0800\r
+Message-Id: <1259648033-30653-3-git-send-email-kanru@kanru.info>\r
+X-Mailer: git-send-email 1.6.5.3\r
+In-Reply-To: <1259648033-30653-2-git-send-email-kanru@kanru.info>\r
+References: <1259648033-30653-1-git-send-email-kanru@kanru.info>\r
+       <1259648033-30653-2-git-send-email-kanru@kanru.info>\r
+Subject: [notmuch] [PATCH 3/3] notmuch.el: Use emacs built-in forward-button\r
+       and backward-button\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 01 Dec 2009 06:14:49 -0000\r
+\r
+There are built-ins, so why not use them?\r
+\r
+Signed-off-by: Kan-Ru Chen <kanru@kanru.info>\r
+---\r
+ notmuch.el |    4 ++--\r
+ 1 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index 5b8513c..4d08c83 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -547,12 +547,12 @@ which this thread was originally shown."\r
+ (defun notmuch-show-next-button ()\r
+   "Advance point to the next button in the buffer."\r
+   (interactive)\r
+-  (goto-char (button-start (next-button (point)))))\r
++  (forward-button 1))\r
\r
+ (defun notmuch-show-previous-button ()\r
+   "Move point back to the previous button in the buffer."\r
+   (interactive)\r
+-  (goto-char (button-start (previous-button (point)))))\r
++  (backward-button 1))\r
\r
+ (defun notmuch-toggle-invisible-action (cite-button)\r
+   (let ((invis-spec (button-get button 'invisibility-spec)))\r
+-- \r
+1.6.5.3\r
+\r