[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indentation
From: |
ptlo |
Subject: |
Re: indentation |
Date: |
Tue, 27 Apr 2021 20:29:32 +0200 |
I have a comment starting with ! in column 1, and a F90 code on next line
starting around column 7. When I hit enter inside the comment, the rest of the
comment is now on new line and aligned according to the *next* line (the F90
code). Moreover the start of the comment, instead of left alone -- is equally
aligned too, i.e. the ! moved to around col. 7. This all happens even when
above the comment was another comment starting e.g. in col. 1, not another F90
code, meaning that the indentation is governed by what follows not precedes.
Crazines squared, isn't it?
Cheers
Petr
______________________________________________________________
> Od: "Stefan Monnier" <monnier@iro.umontreal.ca>
> Komu: help-gnu-emacs@gnu.org
> Datum: 27.04.2021 19:12
> Předmět: Re: indentation
>
>> It gets even worse e.g. in the F90 mode. It e.g. moves a comment (starting
>> with !) on preceding line to the column of first character of the next
>> (really!) line when I add new line inside a code. This is crazy, why
>> I couldn't have comment starting at column 1? The emacs simply can't know
>> what I'm going to do on new empty line!!
>
>I'm not completely sure I understand the scenario you're describing
>(and I'm not very familiar with F90's syntax either, my use of Fortran
>dates back to the nineties but using F77), but it sounds like it might
>simply be a bug.
>
>
> Stefan
>
>
>
>
Re: indentation, Stefan Monnier, 2021/04/27
- Re: indentation,
ptlo <=
- Re: indentation, Stefan Monnier, 2021/04/27
- Re: indentation, ptlo, 2021/04/28
- Re: indentation, Joost Kremers, 2021/04/28
- Re: indentation, Stefan Monnier, 2021/04/28
- Re: indentation, ptlo, 2021/04/29
- Re: indentation, Stefan Monnier, 2021/04/29
- Re: indentation, Emanuel Berg, 2021/04/29
- on interface and behavior (Was: Re: indentation), Wayne Harris, 2021/04/29
- Re: on interface and behavior (Was: Re: indentation), Eli Zaretskii, 2021/04/30
Re: indentation, ptlo, 2021/04/30