aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2015-06-23 01:45:33 +0300
committerJuri Linkov2015-06-23 01:45:33 +0300
commitd010523177889867cf572ff48e8729b1503ea5a4 (patch)
tree1eeeea021ef5c4b8e81b4a75cee71ec43f76afad
parent531125e4c024ca12701608c4516cb9cf993cfad2 (diff)
downloademacs-d010523177889867cf572ff48e8729b1503ea5a4.tar.gz
emacs-d010523177889867cf572ff48e8729b1503ea5a4.zip
* lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'.
(Bug#20785)
-rw-r--r--lisp/simple.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 48451aacbd6..0729d8c353e 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -3318,7 +3318,7 @@ display the error buffer if there were any errors. When called
3318interactively, this is t." 3318interactively, this is t."
3319 (interactive (let (string) 3319 (interactive (let (string)
3320 (unless (mark) 3320 (unless (mark)
3321 (error "The mark is not set now, so there is no region")) 3321 (user-error "The mark is not set now, so there is no region"))
3322 ;; Do this before calling region-beginning 3322 ;; Do this before calling region-beginning
3323 ;; and region-end, in case subprocess output 3323 ;; and region-end, in case subprocess output
3324 ;; relocates them while we are in the minibuffer. 3324 ;; relocates them while we are in the minibuffer.