]> git.eshelyaron.com Git - emacs.git/commit
Remove treesit-disabled-modes and change treesit-should-enable-p
authorYuan Fu <casouri@gmail.com>
Wed, 7 Sep 2022 20:20:37 +0000 (13:20 -0700)
committerYuan Fu <casouri@gmail.com>
Wed, 7 Sep 2022 20:20:37 +0000 (13:20 -0700)
commita23aec59b3a6ed2e96a89dab18f51a6310f1ac7c
treede4457cee70a2984e236141791b84eff748229ca
parent31ad906bd00a3c624ce024f7caa62e9f0b381b37
Remove treesit-disabled-modes and change treesit-should-enable-p

Per emacs-devel discussion, remove treesit-disabled-modes and let
major modes to provide tree-sitter switches.  I also decided to add
treesit-max-buffer-size to elisp manual despite it being a user
option.  Though we should still add it to the user manual.

* doc/lispref/parsing.texi (Parsing Program Source): Update manual to
remove entries for treesit-diabled-modes and add
treesit-max-buffer-size.  Also update treesit-should-enable-p.
* lisp/treesit.el (treesit-disabled-modes): Remove user option.
(treesit-maximum-size): Change to treesit-max-buffer-size.
(treesit-should-enable-p): Change to treesit-can-enable-p and remove
checks of treesit-disabled-modes.
doc/lispref/parsing.texi
lisp/treesit.el