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:
parent
fa90c5e86e
commit
715962e5c4
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user