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>
This commit is contained in:
Kan-Ru Chen 2009-12-01 14:13:53 +08:00 committed by Carl Worth
parent 78c85f053b
commit d9c9e56912

View file

@ -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)))