🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1957

Re: Fortran mode

#1957
From: Lawrence R. Dodd
Date: Tue, 15 Dec 1992 05:14
26 lines
1437 bytes
>>>>> "Konrad" == Konrad Hinsen <HAC041@DJUKFA11.BITNET> writes:

  Konrad> 1) Why my solution doesn't work?
  Konrad> 2) What can be done to really solve this problem?

I asked the same question six months ago.  Stephen Wood the current maintainer
of fortran.el responded with:

....
You can get fortran.el to not indent lines that begin with # by adding the
following to your fortran-mode-hook

(setq comment-line-start-skip
      "^[Cc*]\\(\\([^ \t\n]\\)\\2\\2*\\)?[ \t]*\\|^#.*")

The purpose of this is to skip over the comment character or character
sequences such as c$$$, before it tries to indent the comment line.  The ^#.*
will skip over the entire line before trying to indent.
....

You should also start using the v19 version of fortran.el available via
anonymous ftp to hallc1.cebaf.gov in directory emacs. There are other
fortran-mode goodies in that directory as well.

Larry
Technical Details
Message-ID: <DODD.92Dec15051413@mycenae.cchem.berkeley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!agate.berkeley.edu!dodd
References: <92350.103118HAC041@DJUKFA11.BITNET>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!agate.berkeley.edu!dodd
From: dodd@mycenae.cchem.berkeley.edu (Lawrence R. Dodd)
Newsgroups: gnu.emacs.help
Subject: Re: Fortran mode
Date: 15 Dec 92 05:14:13
Organization: Dept of Chemical Engineering, Polytechnic Univ, NY, USA
Lines: 26
Message-ID: <DODD.92Dec15051413@mycenae.cchem.berkeley.edu>
References: <92350.103118HAC041@DJUKFA11.BITNET>
NNTP-Posting-Host: mycenae.cchem.berkeley.edu
In-reply-to: HAC041@DJUKFA11.BITNET's message of 15 Dec 92 09:31:18 GMT