feature/lookup: silence cl-destructuring-bind errors
In likely case where (bounds-of-thing-at-point 'symbol) returns nil, cl-destructuring-bind would throw a wrong-number-of-args error we don't care about.
This commit is contained in:
parent
60f6418db2
commit
916210d5a8
1 changed files with 7 additions and 6 deletions
|
@ -164,12 +164,13 @@ evil-mode is active."
|
|||
|
||||
((and (featurep 'evil)
|
||||
evil-mode
|
||||
(cl-destructuring-bind (beg . end)
|
||||
(bounds-of-thing-at-point 'symbol)
|
||||
(evil-goto-definition)
|
||||
(let ((pt (point)))
|
||||
(not (and (>= pt beg)
|
||||
(< pt end)))))))
|
||||
(ignore-errors
|
||||
(cl-destructuring-bind (beg . end)
|
||||
(bounds-of-thing-at-point 'symbol)
|
||||
(evil-goto-definition)
|
||||
(let ((pt (point)))
|
||||
(not (and (>= pt beg)
|
||||
(< pt end))))))))
|
||||
|
||||
((error "Couldn't find '%s'" identifier))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue