emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/elpa b0bfbfb 38/71: Fix #488: fix type error in eglot--


From: João Távora
Subject: [elpa] externals/elpa b0bfbfb 38/71: Fix #488: fix type error in eglot--xref-make-match
Date: Wed, 16 Dec 2020 11:42:21 -0500 (EST)

branch: externals/elpa
commit b0bfbfb966663d66595803942f186f81122de263
Author: Philipp Stephani <p.stephani2@gmail.com>
Commit: GitHub <noreply@github.com>

    Fix #488: 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 <joaotavora@gmail.com>
    
    * eglot.el (eglot--lsp-xrefs-for-method): use symbol-name.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index c38620e..15fa2a1 100644
--- a/eglot.el
+++ b/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 )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]