diff options
author | Yuan Fu <casouri@gmail.com> | 2023-01-01 16:15:02 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-01-01 16:15:36 -0800 |
commit | 1864b65af6051f7028beba1a19dfe8bd2eed6574 (patch) | |
tree | 3f467c7f5cbb33c582b41e5fdeb89e13dcbf84c7 | |
parent | 8994f87ad40cabd99a93e0000abfd94777c59f96 (diff) | |
download | emacs-1864b65af6051f7028beba1a19dfe8bd2eed6574.tar.gz |
; Minor fix for treesit--install-language-grammar-1 (bug#60465)
* lisp/treesit.el (treesit--install-language-grammar-1): Fix.
-rw-r--r-- | lisp/treesit.el | 2 |
1 files changed, 2 insertions, 0 deletions
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) |