]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (shell-command): Raise a user-error instead of an error.
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 9 Jul 2019 18:48:35 +0000 (20:48 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 9 Jul 2019 18:48:35 +0000 (20:48 +0200)
lisp/simple.el

index 983a3b6973d9fcf017a8cad994aba16d0672d365..2768bd4a75e00216633acfb57b345e3710b30894 100644 (file)
@@ -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