From: Yuan Fu Date: Mon, 2 Jan 2023 00:15:02 +0000 (-0800) Subject: ; Minor fix for treesit--install-language-grammar-1 (bug#60465) X-Git-Tag: emacs-29.0.90~873 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1864b65af6051f7028beba1a19dfe8bd2eed6574;p=emacs.git ; Minor fix for treesit--install-language-grammar-1 (bug#60465) * lisp/treesit.el (treesit--install-language-grammar-1): Fix. --- 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)