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-repeat.el | |
| parent | 86954af17bcc686de589ff5a76e2018326c00a07 (diff) | |
replace `error` with `user-error` where appropriate
Diffstat (limited to 'evil-repeat.el')
| -rw-r--r-- | evil-repeat.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/evil-repeat.el b/evil-repeat.el index f4edc1c..33abf77 100644 --- a/evil-repeat.el +++ b/evil-repeat.el @@ -561,7 +561,7 @@ If SAVE-POINT is non-nil, do not move point." (let ((confirm-kill-emacs t) (kill-buffer-hook (cons #'(lambda () - (error "Cannot delete buffer in repeat command")) + (user-error "Cannot delete buffer in repeat command")) kill-buffer-hook)) (undo-pointer buffer-undo-list)) (evil-with-single-undo @@ -586,7 +586,7 @@ If COUNT is negative, this is a more recent kill." (cond ((not (and (eq last-command #'evil-repeat) evil-last-repeat)) - (error "Previous command was not evil-repeat: %s" last-command)) + (user-error "Previous command was not evil-repeat: %s" last-command)) (save-point (save-excursion (evil-repeat-pop count))) |
