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.
This commit is contained in:
Stefan Monnier 2025-03-19 15:47:11 -04:00
parent beeece4712
commit 5432331a62

View file

@ -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: |