feature/lookup: fix +lookup/definition not fetching the correct identifier

Some xref backends have specialized thing-at-point implementations (such
as haskell's dante's xref backend), this fix uses them to fetch the
identifier at point.
This commit is contained in:
Henrik Lissner 2018-03-25 22:36:00 -04:00
parent 74bbefc5fd
commit e41212bb7b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -59,7 +59,7 @@ to find it:
Failing all that, it will give up with an error."
(interactive
(list (thing-at-point 'symbol t)
(list (xref-backend-identifier-at-point (xref-find-backend))
current-prefix-arg))
(cond ((null identifier)
(user-error "Nothing under point"))