]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix 'typescript-ts-mode' indent test (bug#71998)
authorjohn muhl <jm@pub.pink>
Mon, 24 Feb 2025 02:03:39 +0000 (20:03 -0600)
committerEshel Yaron <me@eshelyaron.com>
Wed, 26 Feb 2025 09:33:56 +0000 (10:33 +0100)
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
Set 'indent-tabs-mode' after changing the major mode.

(cherry picked from commit c9964e180f743a95579ca832d08bfc450a2dc639)

test/lisp/progmodes/typescript-ts-mode-resources/indent.erts

index 23cebb4c396e8d62185eeb23a9f0cba94d98e245..0db3529522268bba2ba36b84f2407d44c0f900c3 100644 (file)
@@ -95,9 +95,9 @@ const foo = () => {
 
 Code:
   (lambda ()
-    (setq indent-tabs-mode nil)
     (setq tsx-ts-mode-indent-offset 2)
     (tsx-ts-mode)
+    (setq indent-tabs-mode nil)
     (indent-region (point-min) (point-max)))
 
 Name: JSX indentation