[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14448: Wrong indentation in comment lines for F90 mode?
From: |
Stefan Monnier |
Subject: |
bug#14448: Wrong indentation in comment lines for F90 mode? |
Date: |
Fri, 24 May 2013 23:23:27 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>> 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.
Stefan