aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
diff options
context:
space:
mode:
authorGravatar Kan-Ru Chen <kanru@kanru.info>2009-12-01 14:13:53 +0800
committerGravatar Carl Worth <cworth@cworth.org>2010-02-05 11:31:38 -0800
commitd9c9e56912d71e6eca3caf1eac2482529e01308c (patch)
tree16ced0df83a1e25e8f975b5d2c291a58c9fc20ec /notmuch.el
parent78c85f053b28be0ed6c42981bc028739a98d3d93 (diff)
notmuch.el: Use emacs built-in forward-button and backward-button
There are built-ins, so why not use them? Signed-off-by: Kan-Ru Chen <kanru@kanru.info>
Diffstat (limited to 'notmuch.el')
-rw-r--r--notmuch.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/notmuch.el b/notmuch.el
index c2e0899e..5ef38ce5 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -564,12 +564,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 cite-button 'invisibility-spec)))