]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/treesit.c: Change commentary to reflect recent changes.
authorYuan Fu <casouri@gmail.com>
Mon, 17 Oct 2022 05:29:15 +0000 (22:29 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 17 Oct 2022 08:48:50 +0000 (01:48 -0700)
src/treesit.c

index 10af37981b4b60ff22aca20e024e09b069046226..df974f7bf2aff87b97100c6a1e9d06ca56332021 100644 (file)
@@ -328,8 +328,10 @@ init_treesit_functions (void)
 
    Initializing tree-sitter: there are two entry points to tree-sitter
    functions: 'treesit-parser-create' and
-   'treesit-language-available-p'.  Therefore we only need to call
-   initialization function in those two functions.
+   'treesit-language-available-p'.  Technically we only need to call
+   initialization function in those two functions, but in reality we
+   check at the beginning of every lisp function.  That should be more
+   fool-proof.
 
    Tree-sitter offset (0-based) and buffer position (1-based):
      tree-sitter offset + buffer position = buffer position