Commit d0105231 authored by Juri Linkov's avatar Juri Linkov
Browse files

* lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'.

(Bug#20785)
parent 531125e4
...@@ -3318,7 +3318,7 @@ display the error buffer if there were any errors. When called ...@@ -3318,7 +3318,7 @@ display the error buffer if there were any errors. When called
interactively, this is t." interactively, this is t."
(interactive (let (string) (interactive (let (string)
(unless (mark) (unless (mark)
(error "The mark is not set now, so there is no region")) (user-error "The mark is not set now, so there is no region"))
;; Do this before calling region-beginning ;; Do this before calling region-beginning
;; and region-end, in case subprocess output ;; and region-end, in case subprocess output
;; relocates them while we are in the minibuffer. ;; relocates them while we are in the minibuffer.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment