1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-18 19:06:18 -07:00

; Move treesit-languages-require-line-column-tracking to treesit.c.

* lisp/treesit.el: Remove it.
* src/treesit.c (syms_of_treesit): Add it.
This commit is contained in:
Yuan Fu 2026-04-23 20:09:46 -07:00
parent d3debef28d
commit ddbd311d37
No known key found for this signature in database
GPG key ID: 56E19BC57664A442
2 changed files with 3 additions and 5 deletions

View file

@ -5289,6 +5289,8 @@ syms_of_treesit (void)
DEFSYM (Qor, "or");
DEFSYM (Qand, "and");
DEFSYM (Qhaskell, "haskell");
#ifdef WINDOWSNT
DEFSYM (Qtree_sitter, "tree-sitter");
#endif
@ -5410,7 +5412,7 @@ Most tree-sitter language grammars don't require line and column
tracking to work, but some languages do. When creating a parser, if the
language is in this list, Emacs enables line-column tracking for the
buffer. */);
Vtreesit_languages_require_line_column_tracking = Qnil;
Vtreesit_languages_require_line_column_tracking = list1 (Qhaskell);
DEFVAR_LISP ("treesit-major-mode-remap-alist",
Vtreesit_major_mode_remap_alist,