1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-08 20:58:58 +00:00

* lisp/button.el (forward-button): Use user-error instead.

This commit is contained in:
Mark Oteiza 2017-03-19 20:20:45 -04:00
parent fa90c5e86e
commit 715962e5c4

View File

@ -493,7 +493,7 @@ Returns the button found."
(unless (button-get button 'skip)
(setq n (1- n)))))))
(if (null button)
(error (if wrap "No buttons!" "No more buttons"))
(user-error (if wrap "No buttons!" "No more buttons"))
(let ((msg (and display-message (button-get button 'help-echo))))
(when msg
(message "%s" msg)))