[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Missing features in c-ts-mode
From: |
Theodor Thornhill |
Subject: |
Re: Missing features in c-ts-mode |
Date: |
Fri, 17 Feb 2023 10:56:28 +0100 |
Ergus <spacibba@aol.com> writes:
> 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?
>
> Best,
> Ergus
>
It's absolutely possible, but IMO that sounds like an improvement for
emacs 30, maybe? Just create a bug-report and I can take it from there?
Theo
- Re: Missing features in c-ts-mode, (continued)
- 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, 2023/02/17
- Re: Missing features in c-ts-mode,
Theodor Thornhill <=
- 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
- Re: Missing features in c-ts-mode, Theodor Thornhill, 2023/02/16