all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* f90 mode indent with Emacs 22.0.50.1
@ 2005-04-23  0:01 Eric_Salathe
  2005-04-24 19:50 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Eric_Salathe @ 2005-04-23  0:01 UTC (permalink / raw)


I'm finding a different behavior for indents in f90 mode with version
22.0.50.1 than earlier versions (eg 21.2 21.4).

In f90.el, the code

(defcustom f90-program-indent 2
  "*Extra indentation applied to PROGRAM, MODULE, SUBROUTINE, FUNCTION
blocks."
  :type  'integer
  :group 'f90-indent)

should cause a line "program my_great_model" to start in column 1 and
all following lines to be indented 2 columns except the final "end
program my_great_model", which is in column 1 again. This is the
behavior in 21.4.1 and 21.2.1 on both OS X and GNU/Linux.

However, I have installed 22.0.50.1 from CVS on OS X due to the carbon
support in that version. In this version, the "program" and "end
program" lines gets indented 2 columns and the body of the program is
indented another 2, for 4 total. This is not the proper behavior. I can
work around it by not indenting the program line and avoiding the
"Indent Subprogram" command, but that is less than ideal.

Is this a known problem? Is there an easy way to fix it?

-Eric
salathe <at> washington <dot> edu

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

* Re: f90 mode indent with Emacs 22.0.50.1
  2005-04-23  0:01 f90 mode indent with Emacs 22.0.50.1 Eric_Salathe
@ 2005-04-24 19:50 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2005-04-24 19:50 UTC (permalink / raw)


Eric_Salathe@hotmail.com wrote:

> I'm finding a different behavior for indents in f90 mode with version
> 22.0.50.1 than earlier versions (eg 21.2 21.4).
[...]
> Is this a known problem? Is there an easy way to fix it?

Well, it's known now you've mentioned it...

It's a bug I introduced trying to handle un-named program blocks.
Should be fixed now.

If in doubt, please report things with M-x report-emacs-bug - no
nastiness will ensue! :) Bug reports that are actually not bugs (or
have already been fixed) are much better than having things slip
through the cracks.

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

end of thread, other threads:[~2005-04-24 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23  0:01 f90 mode indent with Emacs 22.0.50.1 Eric_Salathe
2005-04-24 19:50 ` Glenn Morris

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.