diff --git a/lisp/treesit.el b/lisp/treesit.el index 14c05b0dd16..82bdb97602d 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -1264,7 +1264,7 @@ omitted, default END to BEG." ;;; Language ;; Defined in treesit.c. This is just to add some default values. -(defvar treesit-languages-need-line-column-tracking +(defvar treesit-languages-require-line-column-tracking '(haskell)) ;; The entries are sorted by `sort-lines'. diff --git a/src/treesit.c b/src/treesit.c index 2b96fe47ce2..4713378315d 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -1527,7 +1527,7 @@ treesit_linecol_maybe (ptrdiff_t pos, ptrdiff_t pos_byte, does not parse the buffer and only updates the tree, so it should be very fast. - This is a wrapper over treesit_record_change that does a bit more + This is a wrapper over treesit_record_change_1 that does a bit more boilerplate work: it (optionally) calculates linecol for new_end, pass all the positions into treesit_record_change_1 which does the real work, and finally (optionally) sets buffer's linecol cache to