From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#71563: 30.0.50; {typescript,tsx}-ts-mode do not indent type parameter lists contents Date: Sat, 15 Jun 2024 02:19:31 +0300 Message-ID: <9ad40c0e-ea70-4172-808b-38c98560cf47@gutov.dev> References: <86jzirw9x8.fsf@aarsen.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16244"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Arsen =?UTF-8?Q?Arsenovi=C4=87?= , 71563-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 15 01:20:37 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sIGDk-0003yi-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jun 2024 01:20:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIGDG-0004GC-1g; Fri, 14 Jun 2024 19:20:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIGDC-0004F2-1N for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2024 19:20:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIGDB-0005Yw-Oo for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2024 19:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIGDB-0007K1-U0 for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2024 19:20:01 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jun 2024 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71563 X-GNU-PR-Package: emacs Mail-Followup-To: 71563@debbugs.gnu.org, dmitry@gutov.dev, arsen@aarsen.me Original-Received: via spool by 71563-done@debbugs.gnu.org id=D71563.171840718428101 (code D ref 71563); Fri, 14 Jun 2024 23:20:01 +0000 Original-Received: (at 71563-done) by debbugs.gnu.org; 14 Jun 2024 23:19:44 +0000 Original-Received: from localhost ([127.0.0.1]:52232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIGCu-0007JA-Bw for submit@debbugs.gnu.org; Fri, 14 Jun 2024 19:19:44 -0400 Original-Received: from wfout1-smtp.messagingengine.com ([64.147.123.144]:45515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIGCr-0007Io-Bo for 71563-done@debbugs.gnu.org; Fri, 14 Jun 2024 19:19:42 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id AFFDA1C000AA; Fri, 14 Jun 2024 19:19:34 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 14 Jun 2024 19:19:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1718407174; x=1718493574; bh=8Yj/Tonq32z3xvlBQ1FlGZiJqzUD+KjP1p01LNQ2i7c=; b= jDlG0PAaKux4gXvP3ljNisOgH2UzOl9SxE4g5duf8WHRMyTuWbLmOjBQVyTqw5VB 1W9ZUcz0bsctFtUKPwli6MEkDt094gXoGPSgbHNFSt0hnN0rRch8A4iHdB+XSQPu P2q54hdYfRx2XlcW9TeYp6vaJ2AFbRiemY77Cl2vFPV8Zm5pMtIxjwtFhuO36yx4 xfyYtYhLPcReLnjVVN3sGpw7XstJ87EUEa7Q/xen2YMC8B6/2pVpKAZdinx37JkN T89yWris0OlaM3u/DuQCt1rRonHmXdMOtbZsdKqNXnEXN2zhlHXDAkq0Nskf+2Ht DONl24Vro5Vvv1bLdPLSMA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1718407174; x= 1718493574; bh=8Yj/Tonq32z3xvlBQ1FlGZiJqzUD+KjP1p01LNQ2i7c=; b=i TJYxhikDaQ6CluQ4ImJQutLh01VST/9/1YISWwdkDP8facisXt5lXSLAr+1mmIf8 AyeGAm/thKnpiHU4Ty0Ln0Kjab/7yT1H/9L9EWmfIPtj+ivGZGc/Bv0GvUc30+1h QunLrfnkEgkdCOa4QNo4crgVVqX2gVRYf8+vRIS5xdu2wL82X+Cj9uWVhaNIYB2w thgamfNoiMFx9uhNonxF8wRY0TULNIzedGxBVuuDTWaoQ3jwlb+Zu/3kM7xAgrFt PXm7OAeozi55G+yC3f22IDUbeJ+FMUgBplBZQ85z5PvjN7tRvKHaNbTj6gezXpkn N3y2Gnq0XA2aJS0Wks7yQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvtddgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeegueegteffuddvjeevvdelleeitdeftdduhfeffeffjedukeevjedvfeffgfev geenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Jun 2024 19:19:33 -0400 (EDT) Content-Language: en-US In-Reply-To: <86jzirw9x8.fsf@aarsen.me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287249 Archived-At: Hi! On 14/06/2024 23:23, Arsen Arsenović via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > A patch that achieves the desired result (I am not sure of the > correctness, but it does seem to do the right thing): > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el > index 74ed6aa2f94..3606a139d50 100644 > --- a/lisp/progmodes/typescript-ts-mode.el > +++ b/lisp/progmodes/typescript-ts-mode.el > @@ -125,6 +125,7 @@ typescript-ts-mode--indent-rules > ((parent-is "switch_case") parent-bol typescript-ts-mode-indent-offset) > ((parent-is "switch_default") parent-bol typescript-ts-mode-indent-offset) > ((parent-is "type_arguments") parent-bol typescript-ts-mode-indent-offset) > + ((parent-is "type_parameters") parent-bol typescript-ts-mode-indent-offset) > ((parent-is ,(rx (or "variable" "lexical") "_" (or "declaration" "declarator"))) > typescript-ts-mode--anchor-decl 1) > ((parent-is "arguments") parent-bol typescript-ts-mode-indent-offset) > > --8<---------------cut here---------------end--------------->8--- > > Thank you for your continued maintenance of Emacs, and have a most > lovely day! 🙂 Thanks for the patch, pushed to master.