]> git.eshelyaron.com Git - emacs.git/commit
Fix egregious thinko in eglot--uri-to-path
authorJoão Távora <joaotavora@gmail.com>
Mon, 9 May 2022 00:17:58 +0000 (01:17 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 9 May 2022 00:18:45 +0000 (01:18 +0100)
commit46a480aa8882d4febc2f8eea42dbd84dff18c0d3
treed753088c6c77394054830dfc269706e875b9a72c
parent29f2ec24713984d561881980aef578faa2a83068
Fix egregious thinko in eglot--uri-to-path

One shouldn't unhex the URI before parsing it.  Just consider a
filename with a # character in it.  The character is encoded as C%23,
after unhexing the file name becomes.

  /tmp/C#/Program.cs

Now, parsing this as the URL will fail completely as the # mean
"anchor" in URLs.

* eglot.el (eglot--uri-to-path): Fix thinko.
lisp/progmodes/eglot.el