Fix 'eglot-imenu'

* lisp/progmodes/eglot.el (eglot--imenu-SymbolInformation): Fix
call to 'plist-get'.  Patch by Lester Longley <lester@ieee.org>.
(Bug#80367)

Copyright-paperwork-exempt: yes
This commit is contained in:
Eli Zaretskii 2026-02-14 14:22:08 +02:00
parent 6a1a544a90
commit 114fab51c0

View file

@ -4208,7 +4208,7 @@ for which LSP on-type-formatting should be requested."
(let ((elems (let ((elems
(eglot--collecting-ranged (eglot--collecting-ranged
(s reg objs (lambda (o) (s reg objs (lambda (o)
(plist-get :range (plist-get o :location)))) (plist-get (plist-get o :location) :range)))
(eglot--dbind ((SymbolInformation) kind name) s (eglot--dbind ((SymbolInformation) kind name) s
(let ((kind (alist-get kind eglot--symbol-kind-names))) (let ((kind (alist-get kind eglot--symbol-kind-names)))
(cons (propertize name (cons (propertize name