GNU bug report logs - #5595
comment-indent-new-line in f90-mode

Previous Next

Package: emacs;

Reported by: Angelo Graziosi <angelo.graziosi <at> alice.it>

Date: Thu, 18 Feb 2010 10:58:01 UTC

Severity: minor

Tags: help

Merged with 14448

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Angelo Graziosi <angelo.graziosi <at> alice.it>
To: 5595 <at> debbugs.gnu.org
Subject: bug#5595: Commenting in F90
Date: Sun, 21 Feb 2010 01:33:29 +0100
Il 19/02/2010 19.01, Glenn Morris ha scritto:
> Angelo Graziosi wrote:
>
>> It is not clear why this happens only with F90 mode. Repeating with
>> foo.cpp' (C/C++ mode and '!' -->  '//') or with 'foo.f' (Fortran mode,
>> !' -->  'C'), C-M-j sets the comment character correctly indended (to
>> me!), under the previous and not shifted...
>
> But 'C' comments in Fortran mode get zero indentation, so how can one
> tell if this functin is indenting the first line or not?
>
> Like I said, I don't really understand what this function is supposed
> to do, nor which variables modes should set to make it work correctly.
>
> Perhaps the maintainer of newcomment.el can help us out...

...or, perhaps, the indentation should regard only the cursor, not the 
character! For example, editing bash script, the following happens (with 
the cursor, X, at the end of last line):

## [...]
## [...]
##    foo text...X  <== last line

Typing C-M-j produces

## [...]
## [...]
##    foo text...
##    X

with the cursor (X) under the 'f' of 'foo': the character '##' is 
vertically aligned.

Ciao,
Angelo.




This bug report was last modified 3 years and 106 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.