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:
parent
74bbefc5fd
commit
e41212bb7b
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ to find it:
|
||||||
|
|
||||||
Failing all that, it will give up with an error."
|
Failing all that, it will give up with an error."
|
||||||
(interactive
|
(interactive
|
||||||
(list (thing-at-point 'symbol t)
|
(list (xref-backend-identifier-at-point (xref-find-backend))
|
||||||
current-prefix-arg))
|
current-prefix-arg))
|
||||||
(cond ((null identifier)
|
(cond ((null identifier)
|
||||||
(user-error "Nothing under point"))
|
(user-error "Nothing under point"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue