diff options
| author | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-10-25 22:06:10 +0200 |
|---|---|---|
| committer | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-10-25 22:06:10 +0200 |
| commit | d0a41bd516b103df724540e4f08603515477a372 (patch) | |
| tree | 84cc4d621f45fc10818e13720715bfeb1657f4d4 /evil-command-window.el | |
| parent | 86954af17bcc686de589ff5a76e2018326c00a07 (diff) | |
replace `error` with `user-error` where appropriate
Diffstat (limited to 'evil-command-window.el')
| -rw-r--r-- | evil-command-window.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-command-window.el b/evil-command-window.el index dafa984..bef885a 100644 --- a/evil-command-window.el +++ b/evil-command-window.el @@ -48,7 +48,7 @@ the key whose history is being shown (one of \":\", \"/\", or \"?\"). EXECUTE-FN should be a function of one argument to execute on the result that the user selects." (when (eq major-mode 'evil-command-window-mode) - (error "Cannot recursively open command line window")) + (user-error "Cannot recursively open command line window")) (mapc #'(lambda (win) (when (equal (buffer-name (window-buffer win)) "*Command Line*") @@ -87,7 +87,7 @@ function to execute." (command-window (get-buffer-window))) (select-window (previous-window)) (unless (equal evil-command-window-current-buffer (current-buffer)) - (error "Originating buffer is no longer active")) + (user-error "Originating buffer is no longer active")) (kill-buffer "*Command Line*") (delete-window command-window) (funcall execute-fn result) |
