1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00

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

(Bug#20785)
This commit is contained in:
Juri Linkov 2015-06-23 01:45:33 +03:00
parent 531125e4c0
commit d010523177

View File

@ -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.