[Top][All Lists]

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

bug#14448: Wrong indentation in comment lines for F90 mode?

From: Angelo Graziosi
Subject: bug#14448: Wrong indentation in comment lines for F90 mode?
Date: Sat, 25 May 2013 13:24:28 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Il 25/05/2013 5.23, Stefan Monnier ha scritto:
I don't understand what comment-indent-new-line is supposed to do, nor
which variables modes should set to make it work correctly.

To tell you the truth, I don't know either.  The way I see it, M-j
should be bound to a function that funcalls comment-line-break-function
(whose default value is comment-indent-new-line).  So modes can modify
comment-line-break-function (ideally via add-function) to tune
its behavior.

F90 is a "free text style of languages and comments" like C++, so one
doesn't understand why its comments behaves differently...

I see now that it behaves differently because f90 tells it to, via
f90-comment-indent.  Try:

! bla
! bli

and then hit either TAB or M-; on the second line, and you'll see it
gets indented by 1 more space, just like in your example.


It seems that this happens only for comments before source code... Anyway, it isn't very important.

Thanks for clarification..


reply via email to

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