]> git.eshelyaron.com Git - emacs.git/commitdiff
Use `locate-user-emacs-file` instead of `concat`
authorlorniu/sz <lorniu@gmail.com>
Sun, 26 Dec 2021 10:37:14 +0000 (18:37 +0800)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 8 Jan 2022 15:45:23 +0000 (16:45 +0100)
* eglot.el (eglot--eclipse-jdt-contact): Use locate-user-emacs-file.

Copyright-paperwork-exempt: Yes

lisp/progmodes/eglot.el

index 19091e8c3e7c14c2f430d226a7be8888138f1b91..0f31da99844611ed6e0cff10575ca9c67795206c 100644 (file)
@@ -3013,8 +3013,8 @@ If INTERACTIVE, prompt user for details."
               (t "config_linux"))))
            (workspace
             (expand-file-name (md5 (project-root (eglot--current-project)))
-                              (concat user-emacs-directory
-                                      "eglot-eclipse-jdt-cache"))))
+                              (locate-user-emacs-file
+                               "eglot-eclipse-jdt-cache"))))
       (unless jar
         (setq jar
               (cl-find-if #'is-the-jar