From: Yuan Fu Date: Tue, 25 Oct 2022 21:27:23 +0000 (-0700) Subject: * lisp/treesit.el (treesit-simple-indent-rules): Make buffer-local. X-Git-Tag: emacs-29.0.90~1788 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5070278539a8e47988cd9529c9c2e4ada8c92472;p=emacs.git * lisp/treesit.el (treesit-simple-indent-rules): Make buffer-local. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 2200b23ce71..c6b396494b4 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -592,10 +592,7 @@ If LOUDLY is non-nil, message some debugging information." (defvar treesit--indent-verbose nil "If non-nil, log progress when indenting.") -;; This is not bound locally like we normally do with major-mode -;; stuff, because for tree-sitter, a buffer could contain more than -;; one language. -(defvar treesit-simple-indent-rules nil +(defvar-local treesit-simple-indent-rules nil "A list of indent rule settings. Each indent rule setting should be (LANGUAGE . RULES), where LANGUAGE is a language symbol, and RULES is a list of