]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix treesit-install-language-grammar (bug#63990)
authorYuan Fu <casouri@gmail.com>
Thu, 15 Jun 2023 08:22:53 +0000 (01:22 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 15 Jun 2023 08:22:53 +0000 (01:22 -0700)
* lisp/treesit.el:
(treesit-install-language-grammar): When called non-interactively,
out-dir should default to default-out-dir.

lisp/treesit.el

index ea701ce1ff79dde900b8e509d06c4d2b93afbc89..d79e77323871c4944750c6dd62f4a597a78baf25 100644 (file)
@@ -3070,7 +3070,9 @@ nil, the grammar is installed to the standard location, the
                    nil
                    'treesit--install-language-grammar-out-dir-history
                    default-out-dir)
-                out-dir)))
+                ;; When called non-interactively, OUT-DIR should
+                ;; default to DEFAULT-OUT-DIR.
+                (or out-dir default-out-dir))))
     (condition-case err
         (progn
           (apply #'treesit--install-language-grammar-1