diff options
| author | Juri Linkov | 2025-11-30 20:14:19 +0200 |
|---|---|---|
| committer | Juri Linkov | 2025-11-30 20:14:19 +0200 |
| commit | 9174bc811a3dbb7caed7c11063c62d97b0e98622 (patch) | |
| tree | a24c44bf4aba2008204a219d065eca7fb74f1086 /src | |
| parent | 16b19ceb285a469469456363df6dda0f0b36b8ab (diff) | |
| download | emacs-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.c | 3 |
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, | |||
| 5275 | then in the `tree-sitter' subdirectory of `user-emacs-directory', and | 5275 | then in the `tree-sitter' subdirectory of `user-emacs-directory', and |
| 5276 | then in the system default locations for dynamic libraries, in that order. | 5276 | then in the system default locations for dynamic libraries, in that order. |
| 5277 | The first writeable directory in the list is special: it's used as the | 5277 | The first writeable directory in the list is special: it's used as the |
| 5278 | default directory when automatically installing the language grammar. */); | 5278 | default directory when automatically installing the language grammar |
| 5279 | using `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", |