From e41212bb7bf951ec66e6fe1c975402f51fa4a6d8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 25 Mar 2018 22:36:00 -0400 Subject: [PATCH] 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. --- modules/feature/lookup/autoload/lookup.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/feature/lookup/autoload/lookup.el b/modules/feature/lookup/autoload/lookup.el index 517625001..2b22ac53b 100644 --- a/modules/feature/lookup/autoload/lookup.el +++ b/modules/feature/lookup/autoload/lookup.el @@ -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"))