all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: 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 16:31:26 -0500	[thread overview]
Message-ID: <87vbrgahqp.fsf@gnu.org> (raw)


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

expected behavior (= emacs 24.3): typing RET (bound to newline)
inserts a newline and puts point at column 0 of the new line

actual behavior: the new line is indented to column 6

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

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.

PS: It seems to me that in fortran-mode the command
indent-for-tab-command bound to TAB is better suited to provide the
proper indentation *after* typing, say, fortran-comment-line-start
or fortran-continuation-string in column 0 of a new line.




In GNU Emacs 24.3.91.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2014-05-12 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description:	Ubuntu 12.04.4 LTS





             reply	other threads:[~2014-07-01 21:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-01 21:31 Roland Winkler [this message]
2014-07-01 22:47 ` bug#17895: 24.3.91; electric-indent-mode not quite right with comments in fortran-mode 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
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=87vbrgahqp.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=17895@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 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.