all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: "Roland Winkler" <winkler@gnu.org>
Cc: 17895@debbugs.gnu.org
Subject: bug#17895: 24.3.91; electric-indent-mode not quite right with comments in fortran-mode
Date: Tue, 01 Jul 2014 19:38:40 -0400	[thread overview]
Message-ID: <cztx70ir9b.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87vbrgahqp.fsf@gnu.org>

"Roland Winkler" wrote:

> emacs -Q
> insert a multiline comment while editing a file with fortran-mode

But Fortran doesn't have multi-line comments. :)
I know what you mean though, you mean that the desired indentation of
the new line isn't known in advance, because it depends on what you write.

Other modes, such as Python, have similar issues.
There, TAB cycles between possible indent positions.
I don't think I see the point in adding something like that for
fixed-format Fortran though.

> A similar problem exists with multiline statements requiring
> fortran-continuation-string in column 5.

I don't see the issue here.

Previously you would have to enter: RET SPC SPC SPC SPC SPC $
or: RET TAB DEL $
or: RET $ TAB

The 1st is inefficient.
The 2nd is replaced by: RET DEL $   (less typing)
The 3rd still works.

> I do not see the benefit of this new behavior in the context of
> fortran-mode.  Maybe electric-indent-chars should be locally bound to
> nil in fortran-mode.

Seems like a sledgehammer solution, just for the sake of "C" comments.
Even g77 supports "!" comments.

The new method is less typing on average, unless you write more "C"
comments than code.





  parent reply	other threads:[~2014-07-01 23:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01 21:31 bug#17895: 24.3.91; electric-indent-mode not quite right with comments in fortran-mode Roland Winkler
2014-07-01 22:47 ` Stefan Monnier
2014-07-01 23:49   ` Glenn Morris
2014-07-02 20:55     ` Roland Winkler
2014-07-02 21:03       ` Glenn Morris
2014-07-02 21:50         ` Roland Winkler
2014-07-03  2:00           ` Stefan Monnier
2014-07-01 23:38 ` Glenn Morris [this message]
2014-07-02  1:17   ` Stefan Monnier
2014-07-02  1:51     ` Glenn Morris
2014-07-02  1:57       ` Glenn Morris
2014-07-02  2:14       ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=cztx70ir9b.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=17895@debbugs.gnu.org \
    --cc=winkler@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.