bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63141: Incorrect indentation in csharp-mode


From: Jen-Chieh Shen
Subject: bug#63141: Incorrect indentation in csharp-mode
Date: Fri, 28 Apr 2023 22:54:15 -0700

> Isn't this user preference that is customizable via c-offset-alist?

Yes, it is.

csharp-mode has the following:

```elisp
(c-add-style "csharp"
             '("java"
               (c-basic-offset . 4)
               (c-comment-only-line-offset . (0 . 0))
               (c-offsets-alist . ((inline-open           . 0)
                                   (arglist-intro         . +)
                                   (arglist-close         . 0)
                                   (inexpr-class          . 0)
                                   (case-label            . +)
                                   (cpp-macro             . c-lineup-dont-change)
                                   (substatement-open     . 0)))))
```

I consider it an awkward indentation, so better to change the default (change to the expected behavior).

On Fri, Apr 28, 2023 at 10:46 PM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jen-Chieh Shen <jcs090218@gmail.com>
> Date: Fri, 28 Apr 2023 12:26:00 -0700
> Cc: Eli Zaretskii <eliz@gnu.org>, 63141@debbugs.gnu.org, jostein@kjonigsen.net
>
> Another indentation issue:
>
> ```csharp
>
> namespace UnityEditor.Accessibility
> {
>     internal enum ColorBlindCondition
>         {
>             Default,
>             Deuteranopia,
>             Protanopia,
>             Tritanopia,
>         }
> }
> ```
>
> expected behavior:
>
> ```csharp
> namespace UnityEditor.Accessibility
> {
>     internal enum ColorBlindCondition
>     {
>         Default,
>         Deuteranopia,
>         Protanopia,
>         Tritanopia,
>     }
> }
> ```
>
> Not sure if this is a feature or a bug.

Isn't this user preference that is customizable via c-offset-alist?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]