]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a ridiculous bug when generating transient projects
authorJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 21:17:00 +0000 (22:17 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 21:17:00 +0000 (22:17 +0100)
* eglot.el (eglot--find-current-process, eglot--interactive): Fix
horrible bug.

lisp/progmodes/eglot.el

index 13aeff69569359f181e743f75ad56f43d23aea8e..11d048e03aa00bbf05cabfed2e2e48a05e2f09e3 100644 (file)
@@ -136,7 +136,7 @@ called interactively."
 
 (defun eglot--find-current-process ()
   "The current logical EGLOT process."
-  (let* ((probe (or (project-current) (cons 'transient default-directory))))
+  (let* ((probe (or (project-current) `(transient . ,default-directory))))
     (cl-find major-mode (gethash probe eglot--processes-by-project)
              :key #'eglot--major-mode)))
 
@@ -208,7 +208,7 @@ called interactively."
                          "\n" base-prompt)))))
     (list
      managed-mode
-     (or (project-current) `(transient . default-directory))
+     (or (project-current) `(transient . ,default-directory))
      (if prompt
          (split-string-and-unquote
           (read-shell-command prompt