From 3e8534acfc73badbd2bcdfd61a1a8a1761abc554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Wed, 29 Apr 2026 10:36:17 +0100 Subject: [PATCH] Eglot: unkeywordize keywordized 'changes' URI's * lisp/progmodes/eglot.el (eglot--apply-workspace-edit): Unkeywordize uri. --- lisp/progmodes/eglot.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 8acc5809dba..88295d400cc 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -4526,7 +4526,12 @@ the edit was attempted and optionally why not." (unless (and changes documentChanges) ;; Prefer `documentChanges' over sort-of-deprecated `changes'. (cl-loop for (uri edits) on changes by #'cddr - do (push (text-edit-op uri edits nil) prepared))) + do (push (text-edit-op + ;; HACK: `uri' has been keywordized by + ;; jsonrpc--read, unkeywordize it. + (substring (symbol-name uri) 1) + edits nil) + prepared))) ;; Apply edits to untitled: buffers unconditionally; they can't ;; be diffed and need no confirmation. (cl-loop for op in prepared