🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by ksampath@magnus. Thu, 13 Feb 1992 01:23
problem with fortran indentation
#4025
Author: ksampath@magnus.
Date: Thu, 13 Feb 1992 01:23
36 lines
1285 bytes
i want the following kind of indentation in fortran-mode (with two blanks
after the "c")

c  this is a full line comment
c  the following is a program line starting at column 6
     write(6,*)' hello world'       ! this is my end of line comment
     write(6,*)' hello everyone'    ! i am listening to carl haus
c  this is another silly comment

my fortran-mode-hook contains the following lines:

  (setq fortran-comment-line-column 3)
  (setq comment-start "! ")
  (setq fortran-comment-region "c..")
  (setq fortran-continuation-indent 3)

but, all my full line comments *always* get indented to column 6.
i have played with many relevant variables but i cannot get it to work.
the only way i can get the comment where i want is by setting the
variable fortran-minimum-statement-indent, which is unacceptable for
obvious reasons (it indents *all* statements to that column!)

i have read the manual and looked at fortran.el, but with my very
limited lisp knowledge, i did not get anywhere....

any help would be greatly appreciated.

thanks
krishna


--
krishna s. sampath....................kss@ampere.eng.ohio-state.edu
ohio state u, electroscience lab......(614) 292-7981 (w)...(614) 292-7297  (f)
1320 kinnear rd, columbus, oh 43212...(614) 293-0913 (h)...011-91-4542-527 (H)

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads