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

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

[elpa] externals/jarchive c9fdbe909d 19/33: Cleanup docstring, and ensur


From: ELPA Syncer
Subject: [elpa] externals/jarchive c9fdbe909d 19/33: Cleanup docstring, and ensure var is set after eglot loads
Date: Sat, 12 Nov 2022 17:57:57 -0500 (EST)

branch: externals/jarchive
commit c9fdbe909d321d90c819d2cda9273e7ae173d0d6
Author: dannyfreeman <danny@dfreeman.email>
Commit: dannyfreeman <danny@dfreeman.email>

    Cleanup docstring, and ensure var is set after eglot loads
---
 jarchive.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/jarchive.el b/jarchive.el
index d5b95d6df4..44f6b6b294 100644
--- a/jarchive.el
+++ b/jarchive.el
@@ -14,15 +14,16 @@
    "jar:file://"
    ;; match group 1, the jar file location
    (group "/" (* not-newline) ".jar")
-   ;; Potential delimiters between the jar and the file inside the jar
-   "!" ;; match the leading directory delimiter /,
+   ;; Delimiter between the jar and the file inside the jar
+   "!"
+   ;; match the leading directory delimiter /,
    ;; archvie mode expects none so it's outside match group 2
    (zero-or-one "/")
    ;; match group 2, the file within the archive
    (group (* not-newline) "." (+ alphanumeric))
    line-end)
   "A regex for matching paths to a jar file and a file path into the jar file.
-Delimited by `!' or `::'")
+Delimited by `!'.")
 
 (defun jarchive--match! (uri)
   (string-match jarchive--uri-regex uri))
@@ -108,7 +109,8 @@ TODO: this might be unnecessary, try to remove"
 ;;;###autoload
 (defun jarchive-setup ()
   (interactive)
-  (setq eglot-preserve-jar-uri t)
+  (with-eval-after-load 'eglot
+    (setq eglot-preserve-jar-uri t))
   (add-to-list 'file-name-handler-alist (cons jarchive--uri-regex 
#'jarchive--file-name-handler))
   (add-to-list 'find-file-not-found-functions #'jarchive--find-file-not-found))
 



reply via email to

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