From d010523177889867cf572ff48e8729b1503ea5a4 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Tue, 23 Jun 2015 01:45:33 +0300 Subject: [PATCH] * lisp/simple.el (shell-command-on-region): Replace 'error' with 'user-error'. (Bug#20785) --- lisp/simple.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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. -- 2.39.5