* lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'.
(Bug#20785)
This commit is contained in:
parent
531125e4c0
commit
d010523177
1 changed files with 1 additions and 1 deletions
|
@ -3318,7 +3318,7 @@ display the error buffer if there were any errors. When called
|
|||
interactively, this is t."
|
||||
(interactive (let (string)
|
||||
(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
|
||||
;; and region-end, in case subprocess output
|
||||
;; relocates them while we are in the minibuffer.
|
||||
|
|
Loading…
Add table
Reference in a new issue