]> git.eshelyaron.com Git - emacs.git/commit
Eglot: unbreak eglot-extend-to-xref on w32
authorJoão Távora <joaotavora@gmail.com>
Thu, 30 Mar 2023 22:52:27 +0000 (23:52 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 30 Mar 2023 22:57:06 +0000 (23:57 +0100)
commit131ec049db03a3a90c887edf67a8de86ab47008a
treeb1ee2e19c6128956181037099d5782dbd6706377
parent0622e1f29f6e4c7a361f5e78ac09bed6466c4b57
Eglot: unbreak eglot-extend-to-xref on w32

Because of a drive-letter casing mismatch between 'buffer-file-name'
and the return value of 'url-generic-parse-url', the hash-table test
'equal' in 'eglot-current-server' failed.

This failed to recognize that the file xref landed us on really is
managed by the language server that facilitated that jump.

The function w32-long-file-name seems to convert "C:/Users/" to
"c:/Users" consistently and so is a good addition to
eglot--uri-to-path.

* lisp/progmodes/eglot.el (eglot--uri-to-path): Use
w32-long-file-name.
lisp/progmodes/eglot.el