From: Kan-Ru Chen Date: Tue, 1 Dec 2009 06:13:53 +0000 (+0800) Subject: notmuch.el: Use emacs built-in forward-button and backward-button X-Git-Tag: 0.1~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9c9e56912d71e6eca3caf1eac2482529e01308c;p=notmuch.git 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 --- 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)))