Subject: Re: bug#77070: [PATCH] ; Fix 'java-ts-mode' tests

From: john muhl <[email-masked]>
Date: Mon, 17 Mar 2025 09:08:13 -0500

>From 4867e0f095d4db3d1650b1c2ba4225106a73a993 Mon Sep 17 00:00:00 2001
From: john muhl <[email-masked]>
Date: Mon, 17 Mar 2025 09:04:33 -0500
Subject: [PATCH] ; Fix 'java-ts-mode' tests (Bug#77070)

* test/lisp/progmodes/java-ts-mode-resources/indent.erts:
Set 'indent-tabs-mode' later.
---
 test/lisp/progmodes/java-ts-mode-resources/indent.erts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lisp/progmodes/java-ts-mode-resources/indent.erts b/test/lisp/progmodes/java-ts-mode-resources/indent.erts
index 7cf59340454..180f4358a0a 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 indent-tabs-mode nil)
     (setq java-ts-mode-indent-offset 4)
     (java-ts-mode)
+    (setq indent-tabs-mode nil)
     (indent-region (point-min) (point-max)))
 
 Point-Char: |
-- 
2.48.1

[email-masked] writes:

> Tags: patch
>
> This is the same fix where we need to set indent-tabs-mode after
> changing the major mode in the test setup.