emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 715962e: * lisp/button.el (forward-button): Use use


From: Mark Oteiza
Subject: [Emacs-diffs] master 715962e: * lisp/button.el (forward-button): Use user-error instead.
Date: Sun, 19 Mar 2017 20:21:27 -0400 (EDT)

branch: master
commit 715962e5c416b62c1deea0bec16c88ae9c63674e
Author: Mark Oteiza <address@hidden>
Commit: Mark Oteiza <address@hidden>

    * lisp/button.el (forward-button): Use user-error instead.
---
 lisp/button.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/button.el b/lisp/button.el
index c39e4f9..b04bc28 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]