emacs-diffs
[Top][All Lists]
Advanced

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

master 77d0793787: * lisp/eshell/esh-opt.el (eshell--do-opts): Demote us


From: Stefan Monnier
Subject: master 77d0793787: * lisp/eshell/esh-opt.el (eshell--do-opts): Demote usage-msg to `user-error`
Date: Sun, 11 Dec 2022 10:56:54 -0500 (EST)

branch: master
commit 77d0793787a85c1b0685173c865578cb11fad855
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/eshell/esh-opt.el (eshell--do-opts): Demote usage-msg to `user-error`
---
 lisp/eshell/esh-opt.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el
index f52b70fe7a..551317d833 100644
--- a/lisp/eshell/esh-opt.el
+++ b/lisp/eshell/esh-opt.el
@@ -132,7 +132,7 @@ This code doesn't really need to be macro expanded 
everywhere."
                       (setq args (eshell--process-args name args options))
                       nil))))
              (when usage-msg
-               (error "%s" usage-msg))))))
+               (user-error "%s" usage-msg))))))
     (if ext-command
         (throw 'eshell-external
                (eshell-external-command ext-command orig-args))
@@ -237,7 +237,7 @@ remaining characters in SWITCH to be processed later as 
further short
 options.
 
 If no matching handler is found, and an :external command is defined
-(and available), it will be called; otherwise, an error will be
+\(and available), it will be called; otherwise, an error will be
 triggered to say that the switch is unrecognized."
   (let ((switch (eshell--split-switch switch kind))
         (opts options)



reply via email to

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