From: Michael Albinus Date: Tue, 9 Jul 2019 18:48:35 +0000 (+0200) Subject: * lisp/simple.el (shell-command): Raise a user-error instead of an error. X-Git-Tag: emacs-27.0.90~2034^2~6 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e4e165eaf08329e7e39965334d744189fddde3d;p=emacs.git * lisp/simple.el (shell-command): Raise a user-error instead of an error. --- diff --git a/lisp/simple.el b/lisp/simple.el index 983a3b6973d..2768bd4a75e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3628,12 +3628,12 @@ impose the use of a shell (with its need to quote arguments)." ;; If will kill a process, query first. (if (yes-or-no-p "A command is running in the default buffer. Kill it? ") (kill-process proc) - (error "Shell command in progress"))) + (user-error "Shell command in progress"))) ((eq async-shell-command-buffer 'confirm-new-buffer) ;; If will create a new buffer, query first. (if (yes-or-no-p "A command is running in the default buffer. Use a new buffer? ") (setq buffer (generate-new-buffer bname)) - (error "Shell command in progress"))) + (user-error "Shell command in progress"))) ((eq async-shell-command-buffer 'new-buffer) ;; It will create a new buffer. (setq buffer (generate-new-buffer bname))) @@ -3644,7 +3644,7 @@ impose the use of a shell (with its need to quote arguments)." (with-current-buffer buffer (rename-uniquely)) (setq buffer (get-buffer-create bname))) - (error "Shell command in progress"))) + (user-error "Shell command in progress"))) ((eq async-shell-command-buffer 'rename-buffer) ;; It will rename the buffer. (with-current-buffer buffer