emacs-diffs
[Top][All Lists]
Advanced

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

master 23b49c0178: ; Tweak comment in lisp/progmodes/eglot.el (bug#58790


From: João Távora
Subject: master 23b49c0178: ; Tweak comment in lisp/progmodes/eglot.el (bug#58790)
Date: Fri, 11 Nov 2022 04:29:58 -0500 (EST)

branch: master
commit 23b49c0178d0c651c3af115fe2f357df0cdaaf01
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>

    ; Tweak comment in lisp/progmodes/eglot.el (bug#58790)
    
    * lisp/progmodes/eglot.el (eglot--uri-to-path): Tweak comment.
---
 lisp/progmodes/eglot.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el
index 7c80c8826a..7935272705 100644
--- a/lisp/progmodes/eglot.el
+++ b/lisp/progmodes/eglot.el
@@ -1522,7 +1522,9 @@ If optional MARKER, return a marker instead"
   (let* ((server (eglot-current-server))
          (remote-prefix (and server (eglot--trampish-p server)))
          (url (url-generic-parse-url uri)))
-    ;; Only attempt to parse URIs with the file scheme.
+    ;; Only parse file:// URIs, leave other URI untouched as
+    ;; `file-name-handler-alist' should know how to handle them
+    ;; (bug#58790).
     (if (string= "file" (url-type url))
         (let* ((retval (url-unhex-string (url-filename url)))
                ;; Remove the leading "/" for local MS Windows-style paths.
@@ -1532,8 +1534,7 @@ If optional MARKER, return a marker instead"
                                (substring retval 1)
                              retval)))
           (concat remote-prefix normalized))
-      ;; Leave non-file type URIs untouched, `file-name-handler-alist'
-      ;; handlers can be used to dispatch them properly.
+
       uri)))
 
 (defun eglot--snippet-expansion-fn ()



reply via email to

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