unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: 5595@debbugs.gnu.org
Subject: bug#5595: Commenting in F90
Date: Fri, 19 Feb 2010 13:25:16 -0500	[thread overview]
Message-ID: <jwvr5ohaxuv.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4B7E5CED.5040509@alice.it> (Angelo Graziosi's message of "Fri, 19 Feb 2010 10:42:05 +0100")

>> It's a little ambiguous from that as to whether it indents the first
>> line or not. The Emacs manual is clearer, saying:
>> Like<RET>  followed by inserting and aligning a comment
>> Ie, it does not indent the first line, only the second.
>> Under these criteria, it appears to be working correctly.

> Uhm...

> 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...

comment-indent-new-line is written with a "traditional" free text style
of languages and comments, so I'm not surprised it doesn't work 100%
right under languages such as Fortran.
It's a nasty function, but I've spent a fair bit of time in it (years
ago), so I should be able to track down the problem.


        Stefan






  parent reply	other threads:[~2010-02-19 18:25 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
2010-02-19 18:25     ` Stefan Monnier [this message]
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=jwvr5ohaxuv.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=5595@debbugs.gnu.org \
    --cc=angelo.graziosi@alice.it \
    /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).