aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuri Linkov2025-11-30 20:14:19 +0200
committerJuri Linkov2025-11-30 20:14:19 +0200
commit9174bc811a3dbb7caed7c11063c62d97b0e98622 (patch)
treea24c44bf4aba2008204a219d065eca7fb74f1086 /src
parent16b19ceb285a469469456363df6dda0f0b36b8ab (diff)
downloademacs-9174bc811a3dbb7caed7c11063c62d97b0e98622.tar.gz
emacs-9174bc811a3dbb7caed7c11063c62d97b0e98622.zip
Use treesit-extra-load-path for more values of treesit-auto-install-grammar
* lisp/treesit.el (treesit-auto-install-grammar): Use the first writable directory from 'treesit-extra-load-path' for values 'always', 'ask', 'ask-dir' (bug#79862). * src/treesit.c (syms_of_treesit): Extend docstring.
Diffstat (limited to 'src')
-rw-r--r--src/treesit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/treesit.c b/src/treesit.c
index d3b6f36ec81..71ded0dcb71 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -5275,7 +5275,8 @@ Emacs first looks in the directories mentioned in this variable,
5275then in the `tree-sitter' subdirectory of `user-emacs-directory', and 5275then in the `tree-sitter' subdirectory of `user-emacs-directory', and
5276then in the system default locations for dynamic libraries, in that order. 5276then in the system default locations for dynamic libraries, in that order.
5277The first writeable directory in the list is special: it's used as the 5277The first writeable directory in the list is special: it's used as the
5278default directory when automatically installing the language grammar. */); 5278default directory when automatically installing the language grammar
5279using `treesit-ensure-installed'. */);
5279 Vtreesit_extra_load_path = Qnil; 5280 Vtreesit_extra_load_path = Qnil;
5280 5281
5281 DEFVAR_LISP ("treesit-thing-settings", 5282 DEFVAR_LISP ("treesit-thing-settings",