mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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:
parent
78c85f053b
commit
d9c9e56912
1 changed files with 2 additions and 2 deletions
|
@ -564,12 +564,12 @@ which this thread was originally shown."
|
||||||
(defun notmuch-show-next-button ()
|
(defun notmuch-show-next-button ()
|
||||||
"Advance point to the next button in the buffer."
|
"Advance point to the next button in the buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(goto-char (button-start (next-button (point)))))
|
(forward-button 1))
|
||||||
|
|
||||||
(defun notmuch-show-previous-button ()
|
(defun notmuch-show-previous-button ()
|
||||||
"Move point back to the previous button in the buffer."
|
"Move point back to the previous button in the buffer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(goto-char (button-start (previous-button (point)))))
|
(backward-button 1))
|
||||||
|
|
||||||
(defun notmuch-toggle-invisible-action (cite-button)
|
(defun notmuch-toggle-invisible-action (cite-button)
|
||||||
(let ((invis-spec (button-get cite-button 'invisibility-spec)))
|
(let ((invis-spec (button-get cite-button 'invisibility-spec)))
|
||||||
|
|
Loading…
Reference in a new issue