]> git.eshelyaron.com Git - emacs.git/commit
Convert colon to hex in uri
authorTheodor Thornhill <theo@thornhill.no>
Sat, 6 Mar 2021 20:18:48 +0000 (21:18 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 6 Mar 2021 20:33:52 +0000 (20:33 +0000)
commitff91ba70cd24e7469c7c171234363c82b1566cd6
treef32b639243b03416affc3ca64e34eca94483f246
parent2076d345655206254f6749cf710c150dfec313dd
Convert colon to hex in uri

On windows, in the path portion of the URI, ':' must be hexified to
'%3A'.  In the URL scheme, the ':' stays.

* eglot.el (eglot--uri-path-allowed-chars): define what characters are
allowed in path portion of URI.

* eglot.el (eglot--path-to-uri): ensure colon in 'file://' stays, but
and others are hexified.

Co-authored-by: João Távora
GitHub-reference: fix https://github.com/joaotavora/eglot/issues/638
lisp/progmodes/eglot.el