GNU bug report logs - #77803
tsx-ts-mode: wrong indentation for variables declarations

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>

Date: Mon, 14 Apr 2025 15:43:01 UTC

Severity: normal

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 77803 <at> debbugs.gnu.org, casouri <at> gmail.com, Hi-Angel <at> yandex.ru
Subject: bug#77803: [PATCH v2] Don't indent variable names to their declarator expression (bug#77803)
Date: Sat, 19 Apr 2025 10:32:21 +0300
> Date: Sat, 19 Apr 2025 04:02:11 +0300
> From: Dmitry Gutov <dmitry <at> gutov.dev>
> 
> On 19/04/2025 02:43, Yuan Fu wrote:
> > Thanks! I personally like the current indentation,
> 
> js2-mode has been doing it this way for a number of years (triggered by 
> user requests), js-mode followed suit later.
> 
> So it's hard to call the current indentation incorrect. Could use a user 
> option. Maybe take js2-pretty-multiline-declarations as an example.

Yes, if more than 2 indentation styles could be favored, a user-level
indentation-style option is in order.




This bug report was last modified 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.