summaryrefslogtreecommitdiff
path: root/lisp/button.el
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2017-03-19 20:20:45 -0400
committerMark Oteiza <mvoteiza@udel.edu>2017-03-19 20:20:45 -0400
commit715962e5c416b62c1deea0bec16c88ae9c63674e (patch)
tree6832eed303084e68e9309afcd86eef79d0bbd0c2 /lisp/button.el
parentfa90c5e86e2b11e89c6a1d709e25003a60656f0d (diff)
downloademacs-715962e5c416b62c1deea0bec16c88ae9c63674e.tar.gz
* lisp/button.el (forward-button): Use user-error instead.
Diffstat (limited to 'lisp/button.el')
-rw-r--r--lisp/button.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/button.el b/lisp/button.el
index c39e4f97c13..b04bc283e40 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -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)))