unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: 5595@debbugs.gnu.org
Subject: bug#5595: Commenting in F90
Date: Sun, 21 Feb 2010 01:33:29 +0100	[thread overview]
Message-ID: <4B807F59.5020508@alice.it> (raw)
In-Reply-To: <qjeikhjea6.fsf@fencepost.gnu.org>

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.






  reply	other threads:[~2010-02-21  0:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 10:30 bug#5595: Commenting in F90 Angelo Graziosi
2010-02-19  9:12 ` Glenn Morris
2010-02-19  9:42   ` Angelo Graziosi
2010-02-19 18:01     ` Glenn Morris
2010-02-21  0:33       ` Angelo Graziosi [this message]
2010-02-19 18:25     ` Stefan Monnier
2022-02-05 23:44 ` bug#14448: Wrong indentation in comment lines for F90 mode? Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B807F59.5020508@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=5595@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).