emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/eglot 1a54fc0 40/49: Per #627: URIfy better


From: Stefan Monnier
Subject: [elpa] externals/eglot 1a54fc0 40/49: Per #627: URIfy better
Date: Wed, 17 Mar 2021 18:41:49 -0400 (EDT)

branch: externals/eglot
commit 1a54fc0ee5b2611deb3aec1ee8ae4f17dc9b14b0
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    Per #627: URIfy better
    
    See also
    
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#uri.
    
    * eglot.el (eglot--path-to-uri): use directory-file-name.
---
 eglot.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/eglot.el b/eglot.el
index 86e0d01..017b820 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1168,7 +1168,8 @@ If optional MARKER, return a marker instead"
 (defun eglot--path-to-uri (path)
   "URIfy PATH."
   (url-hexify-string
-   (concat "file://" (if (eq system-type 'windows-nt) "/") (file-truename 
path))
+   (concat "file://" (if (eq system-type 'windows-nt) "/")
+           (directory-file-name (file-truename path)))
    url-path-allowed-chars))
 
 (defun eglot--uri-to-path (uri)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]