From: Stefan Monnier Date: Wed, 19 Mar 2025 19:47:11 +0000 (-0400) Subject: indent.erts (Code): Don't modify the global state X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dba2f42cd6f869ffc92b483c2557672dbe163de5;p=emacs.git indent.erts (Code): Don't modify the global state * test/lisp/progmodes/java-ts-mode-resources/indent.erts (Code): Use `setq-local` and correspondingly move the remaining assignment after activating the major mode. (cherry picked from commit 5432331a62522c096246ef995a5b41dc067d25a9) --- diff --git a/test/lisp/progmodes/java-ts-mode-resources/indent.erts b/test/lisp/progmodes/java-ts-mode-resources/indent.erts index 180f4358a0a..bc0ba3b9373 100644 --- a/test/lisp/progmodes/java-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/java-ts-mode-resources/indent.erts @@ -1,8 +1,8 @@ Code: (lambda () - (setq java-ts-mode-indent-offset 4) (java-ts-mode) - (setq indent-tabs-mode nil) + (setq-local java-ts-mode-indent-offset 4) + (setq-local indent-tabs-mode nil) (indent-region (point-min) (point-max))) Point-Char: |