[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Missing features in c-ts-mode
From: |
Eli Zaretskii |
Subject: |
Re: Missing features in c-ts-mode |
Date: |
Fri, 17 Feb 2023 10:42:16 +0200 |
> Date: Fri, 17 Feb 2023 09:29:35 +0100
> From: Ergus <spacibba@aol.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, casouri@gmail.com, emacs-devel@gnu.org
>
> Hi Theodor:
>
> Sorry to bother, but I have a question about commit:
>
> f1f571e Add electric indent for preproc directives
>
> c-mode had by default the [0] indentation for #preprocesor directives,
> but there are some use cases where that behavior is not desired (i.e
> #pragma).
>
> Actually there are even multi-line pragmas when using OpenMP
>
> int main()
> {
> #pragma parallel for first private(x) \
> shared(y) etc
> for (...) {
> ....
> }
> }
>
> In this case the pragma in column zero is very confusing. Alan added a
> new mode (c-toggle-cpp-indent-to-body) which worked around this issue a
> few years ago. I don't if it is possible to enable similar behavior with
> your change? Is is?
We could perhaps have a similar toggle in c-ts-mode. Theo, can you
have a look? Btw, the fact that this is off by default IMO speaks
volumes about the importance of the feature.
- Re: Missing features in c-ts-mode, (continued)
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/15
- Re: Missing features in c-ts-mode, Eli Zaretskii, 2023/02/15
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/15
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/15
- Re: Missing features in c-ts-mode, Eli Zaretskii, 2023/02/15
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/15
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/16
- Re: Missing features in c-ts-mode, Eli Zaretskii, 2023/02/16
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/16
- Re: Missing features in c-ts-mode, Ergus, 2023/02/17
- Re: Missing features in c-ts-mode,
Eli Zaretskii <=
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/17
- Re: Missing features in c-ts-mode, Eli Zaretskii, 2023/02/17
- Re: Missing features in c-ts-mode, Ergus, 2023/02/17
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/17
- Re: Missing features in c-ts-mode, Ergus, 2023/02/17
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/17
- Re: Missing features in c-ts-mode, Ergus, 2023/02/17
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/17
- Re: Missing features in c-ts-mode, Felix, 2023/02/15
- Re: Missing features in c-ts-mode, Eli Zaretskii, 2023/02/16