]> 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:19:23 +0000 (22:19 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 21:19:23 +0000 (22:19 +0100)
* eglot.el (eglot--find-current-process, eglot--interactive): Fix
horrible bug.

lisp/progmodes/eglot.el

index 85b2d89a67a42a45183a38313ca472105e98e820..eb04c720b05f651d819662e99019d35a8cd2b6a2 100644 (file)
@@ -79,7 +79,7 @@ lasted more than that many seconds."
 
 (defun eglot--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)))
 
@@ -300,7 +300,7 @@ INTERACTIVE is t if inside interactive call."
                          "\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