Subject: bug#59680: closed (Re: bug#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 09 Dec 2022 21:32:02 +0000

Your bug report

#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
59680: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59680
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#59680: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode
From: Yuan Fu <[email-masked]>
To: Theodor Thornhill <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Fri, 9 Dec 2022 13:31:20 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Theodor Thornhill <[email-masked]> writes:

> Hi all!
>
> A tiny patch to add indentation for class_body.
>
> Feel free to apply, Yuan or Eli :-)
>
> Theo

Applied, thanks!

Yuan

Subject: 29.0.60; [PATCH] Add class_body rule to typescript-ts-mode
From: Theodor Thornhill <[email-masked]>
To: [email-masked]
Date: Tue, 29 Nov 2022 16:15:15 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi all!

A tiny patch to add indentation for class_body.

Feel free to apply, Yuan or Eli :-)

Theo

>From 4a33766aa96c955cd0dcd7b6af9dfa0be0a928e9 Mon Sep 17 00:00:00 2001
From: Theodor Thornhill <[email-masked]>
Date: Tue, 29 Nov 2022 16:12:18 +0100
Subject: [PATCH] Add class_body indentation for typescript

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): New indent rule.
---
 lisp/progmodes/typescript-ts-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el
index 6c926a4e3e..0559ef8f25 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -79,6 +79,7 @@ typescript-ts-mode--indent-rules
      ((parent-is "object") parent-bol typescript-ts-mode-indent-offset)
      ((parent-is "object_type") parent-bol typescript-ts-mode-indent-offset)
      ((parent-is "enum_body") parent-bol typescript-ts-mode-indent-offset)
+     ((parent-is "class_body") parent-bol typescript-ts-mode-indent-offset)
      ((parent-is "arrow_function") parent-bol typescript-ts-mode-indent-offset)
      ((parent-is "parenthesized_expression") parent-bol typescript-ts-mode-indent-offset)
 
-- 
2.34.1