]> git.eshelyaron.com Git - emacs.git/commit
Make it work on windows
authorJoão Távora <joaotavora@gmail.com>
Thu, 17 May 2018 13:03:20 +0000 (14:03 +0100)
committerJoão Távora <joaotavora@gmail.com>
Thu, 17 May 2018 13:07:02 +0000 (14:07 +0100)
commit04da3b6abdcddebdaf899a1f2f0de511f4174146
tree75389f26146268492cd2f7448a8e5d2550c453e7
parent1104060048f1e2fae7e5ed19a00bbe1d738a5861
Make it work on windows

Apparently passing :coding 'no-conversion to make-process on windows
is essential to receive any text at all in the process filter.

Also needed to tweak uri-to-path and path-to-uri.

Thanks to lsp-mode.el for these hints

* eglot.el (eglot--make-process): Pass :coding 'no-conversion to
make-process.
(eglot--path-to-uri): Add a forward slash if windows-nt.
(eglot--uri-to-path): Remove a forward slash if windows-nt.
(eglot--server-textDocument/publishDiagnostics): Simplify and use
eglot--uri-to-path.
lisp/progmodes/eglot.el