GNU bug report logs - #79398
[PATCH] 31.0.50; csharp-ts-mode has various indentation bugs

Previous Next

Package: emacs;

Reported by: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>

Date: Sat, 6 Sep 2025 21:19:01 UTC

Severity: normal

Tags: patch

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Full log


View this message in rfc822 format

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: 79398 <at> debbugs.gnu.org
Cc: Yuan Fu <casouri <at> gmail.com>
Subject: bug#79398: [PATCH] 31.0.50; csharp-ts-mode has various indentation bugs
Date: Sat, 6 Sep 2025 23:17:49 +0200
[Message part 1 (text/plain, inline)]
Hey everyone.

When writing new code with csharp-ts-mode, I've noticed there are a few cases where indentation is not automatically correct according to what is natural, nor what is convention.

For some cases, the indentation falls back to 0-indentation, and you have to manually add all the indentation back for things to look normal.

Examples:

- method call chains across several lines (indentation wrong on new-line)
- creating new objects (indentation wrong on first line after "new" - being unindented)
- array creation expressions (indentation wrong on second line, the one containing { - being overly indented )

Attached is a patch which fixes these behaviours.

—
Kind Regards
Jostein Kjønigsen



[Message part 2 (text/html, inline)]
[0001-csharp-mode-indentation-fixes.patch (application/octet-stream, attachment)]
[Message part 4 (text/html, inline)]

This bug report was last modified 6 days ago.

Previous Next


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