From 5070278539a8e47988cd9529c9c2e4ada8c92472 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 25 Oct 2022 14:27:23 -0700 Subject: [PATCH] * lisp/treesit.el (treesit-simple-indent-rules): Make buffer-local. --- lisp/treesit.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.39.2