From: Philipp Stephani
Date: Mon, 25 May 2020 09:30:32 +0000 (+0200)
Subject: Fix type error in eglot--xref-make-match
X-Git-Tag: emacs-29.0.90~1616^2~524^2~4^2~217
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b2dd04ddbe94b5a10884fd01a8309a0ea8f6b887;p=emacs.git
Fix type error in eglot--xref-make-match
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
* eglot.el (eglot--lsp-xrefs-for-method): use symbol-name.
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/488
---
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index c38620edf96..15fa2a189fe 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -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 )