]> git.eshelyaron.com Git - emacs.git/commitdiff
Use OUT-DIR in treesit-install-language-grammar (bug#64295)
authorYuan Fu <casouri@gmail.com>
Thu, 29 Jun 2023 18:27:37 +0000 (11:27 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 29 Jun 2023 18:28:18 +0000 (11:28 -0700)
* lisp/treesit.el (treesit-install-language-grammar): Use out-dir.

lisp/treesit.el

index df13dd9f424bfd65c2f128fbbd9235b0c76b4177..81920834329d38718e0314e8e603116cb167a6bb 100644 (file)
@@ -3094,8 +3094,7 @@ nil, the grammar is installed to the standard location, the
     (condition-case err
         (progn
           (apply #'treesit--install-language-grammar-1
-                 ;; The nil is OUT-DIR.
-                 (cons nil recipe))
+                 (cons out-dir recipe))
 
           ;; Check that the installed language grammar is loadable.
           (pcase-let ((`(,available . ,err)