]> git.eshelyaron.com Git - emacs.git/commitdiff
; Minor fix for treesit--install-language-grammar-1 (bug#60465)
authorYuan Fu <casouri@gmail.com>
Mon, 2 Jan 2023 00:15:02 +0000 (16:15 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 2 Jan 2023 00:15:36 +0000 (16:15 -0800)
* lisp/treesit.el (treesit--install-language-grammar-1): Fix.

lisp/treesit.el

index 0b512cf8669f5ddf82da140981ebf072a3cec1ef..1ca72af5c2d9c9ad757bab598ee23dbc4b8c23d1 100644 (file)
@@ -2772,6 +2772,8 @@ function signals an error."
                       (rx bos (+ anychar) ".o" eos))
                    "-o" ,lib-name))
           ;; Copy out.
+          (unless (file-exists-p out-dir)
+            (make-directory out-dir t))
           (copy-file lib-name (file-name-as-directory out-dir) t t)
           (message "Library installed to %s/%s" out-dir lib-name))
       (when (file-exists-p workdir)