]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't call font-lock-mode in treesit-major-mode-setup (bug#66223)
authorYuan Fu <casouri@gmail.com>
Wed, 27 Sep 2023 07:21:40 +0000 (00:21 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 9 Oct 2023 05:00:36 +0000 (22:00 -0700)
* lisp/treesit.el (treesit-major-mode-setup): Remove.

(cherry picked from commit a3a840c80a217db7d4d125c667ff7d4946507fbb)

lisp/treesit.el

index e8d57dfcd060b2b361d2f63a7aedefadeb182d3b..c4aba4c3e8d22c841486d1466eb67853b52e1f50 100644 (file)
@@ -2386,7 +2386,6 @@ before calling this function."
                 '( nil nil nil nil
                    (font-lock-fontify-syntactically-function
                     . treesit-font-lock-fontify-region)))
-    (font-lock-mode 1)
     (treesit-font-lock-recompute-features)
     (dolist (parser (treesit-parser-list))
       (treesit-parser-add-notifier