summaryrefslogtreecommitdiff
path: root/src/treesit.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-12-31 10:13:15 +0200
committerEli Zaretskii <eliz@gnu.org>2022-12-31 10:13:15 +0200
commitbfdad6c4e5ce95025f1761a404b762589d126505 (patch)
tree286c43312a04fd1ed0cbe29dcc5d00721102c2b9 /src/treesit.c
parentab1f245f1a1b36bae9a3051b6cb93ecd5b78dd7a (diff)
downloademacs-bfdad6c4e5ce95025f1761a404b762589d126505.tar.gz
; Fix recent treesit-related changes
* lisp/treesit.el (treesit-language-source-alist) (treesit--install-language-grammar-1): Doc fixes. * src/treesit.c (Ftreesit_language_abi_version): Fix a typo in function's Lisp name. Doc fix. (Ftreesit_language_available_p): Fix a typo in the function's C name. * doc/lispref/parsing.texi (Language Grammar): Fix wording.
Diffstat (limited to 'src/treesit.c')
-rw-r--r--src/treesit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/treesit.c b/src/treesit.c
index 974d2fc4517..e87bfc3429c 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -632,7 +632,7 @@ treesit_load_language (Lisp_Object language_symbol,
return lang;
}
-DEFUN ("treesit-language-available-p", Ftreesit_langauge_available_p,
+DEFUN ("treesit-language-available-p", Ftreesit_language_available_p,
Streesit_language_available_p,
1, 2, 0,
doc: /* Return non-nil if LANGUAGE exists and is loadable.
@@ -679,14 +679,14 @@ is non-nil, return the oldest compatible ABI version. */)
return make_fixnum (TREE_SITTER_MIN_COMPATIBLE_LANGUAGE_VERSION);
}
-DEFUN ("treesit-language-version", Ftreesit_language_abi_version,
+DEFUN ("treesit-language-abi-version", Ftreesit_language_abi_version,
Streesit_language_abi_version,
0, 1, 0,
- doc: /* Return the language ABI version of the tree-sitter LANGUAGE.
-Return nil if LANGUAGE is not available. */)
+ doc: /* Return the ABI version of the tree-sitter grammar for LANGUAGE.
+Return nil if a grammar library for LANGUAGE is not available. */)
(Lisp_Object language)
{
- if (NILP (Ftreesit_langauge_available_p (language, Qnil)))
+ if (NILP (Ftreesit_language_available_p (language, Qnil)))
return Qnil;
else
{