From 1864b65af6051f7028beba1a19dfe8bd2eed6574 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Sun, 1 Jan 2023 16:15:02 -0800 Subject: [PATCH] ; Minor fix for treesit--install-language-grammar-1 (bug#60465) * lisp/treesit.el (treesit--install-language-grammar-1): Fix. --- lisp/treesit.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/treesit.el b/lisp/treesit.el index 0b512cf8669..1ca72af5c2d 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -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) -- 2.39.2