aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEivind Fonn <evfonn@gmail.com>2019-11-27 16:40:20 +0100
committerEivind Fonn <evfonn@gmail.com>2019-11-27 16:43:22 +0100
commit29a29e56046b9b5ec7cab268528851ceb21e4b07 (patch)
tree7400360f1cd4933acdde8ac360efaedf0be18e12
parent56eb22ac71f10a5475945086ebb9ed45af0a6638 (diff)
Fix usage of too new macro `ignore-error'
Fixes #1206
-rw-r--r--evil-commands.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/evil-commands.el b/evil-commands.el
index c99f72e..2f8464d 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -2735,8 +2735,9 @@ The search is unbounded, i.e., the pattern is not wrapped in
(let ((identifier (save-excursion
(goto-char position)
(xref-backend-identifier-at-point (xref-find-backend)))))
- (ignore-error user-error
- (xref-find-definitions identifier)))))
+ (condition-case ()
+ (xref-find-definitions identifier)
+ (user-error nil)))))
(defun evil-goto-definition-search (string _position)
"Find definition for STRING with evil-search."