all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17895: 24.3.91; electric-indent-mode not quite right with comments in fortran-mode
@ 2014-07-01 21:31 Roland Winkler
  2014-07-01 22:47 ` Stefan Monnier
  2014-07-01 23:38 ` Glenn Morris
  0 siblings, 2 replies; 12+ messages in thread
From: Roland Winkler @ 2014-07-01 21:31 UTC (permalink / raw)
  To: 17895


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





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-07-03  2:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.