]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix type error in eglot--xref-make-match
authorPhilipp Stephani <p.stephani2@gmail.com>
Mon, 25 May 2020 09:30:32 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 09:30:32 +0000 (10:30 +0100)
Its first argument is passed to xref-make-match, which expects a string
as its SUMMARY argument, but symbol-at-point returns a symbol.

Co-authored-by: João Távora <joaotavora@gmail.com>
* eglot.el (eglot--lsp-xrefs-for-method): use symbol-name.

GitHub-reference: fix https://github.com/joaotavora/eglot/issues/488

lisp/progmodes/eglot.el

index c38620edf96f1572efc84d5e593843f02d1b017a..15fa2a189fe020a26c58eb366e88dcf56cc5866c 100644 (file)
@@ -1954,7 +1954,8 @@ Try to visit the target file for a richer summary line."
     (eglot--collecting-xrefs (collect)
       (mapc
        (eglot--lambda ((Location) uri range)
-         (collect (eglot--xref-make-match (symbol-at-point) uri range)))
+         (collect (eglot--xref-make-match (symbol-name (symbol-at-point))
+                                          uri range)))
        (if (vectorp response) response (list response))))))
 
 (cl-defun eglot--lsp-xref-helper (method &key extra-params capability )