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>

To reply to this bug, email your comments to 79398 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79398; Package emacs. (Sat, 06 Sep 2025 21:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 06 Sep 2025 21:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: bug-gnu-emacs <at> gnu.org
Cc: Yuan Fu <casouri <at> gmail.com>
Subject: [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)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79398; Package emacs. (Sun, 07 Sep 2025 17:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 79398 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
Cc: Yuan Fu <casouri <at> gmail.com>, 79398 <at> debbugs.gnu.org
Subject: Re: bug#79398: [PATCH] 31.0.50; csharp-ts-mode has various
 indentation bugs
Date: Sun, 07 Sep 2025 20:55:48 +0300
close 79398 31.0.50
thanks

> Attached is a patch which fixes these behaviours.

Thanks, now pushed (I had to push the patch as soon as possible
to avoid merge conflicts with bug#79363 where we are refactoring
indentation functions.)




bug marked as fixed in version 31.0.50, send any further explanations to 79398 <at> debbugs.gnu.org and Jostein Kjønigsen <jostein <at> secure.kjonigsen.net> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sun, 07 Sep 2025 17:58:03 GMT) Full text and rfc822 format available.

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.