🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98737

TAB format support for fortran.el

#98737
From: Stephen A. Wood
Date: Fri, 22 Mar 1991 14:47
43 lines
3128 bytes
I have made some modifications to the fortran.el that is supplied with
GNU emacs in order to support TAB formatting as well as Fixed
formatting.  Fixed format is the traditional stylewhere statements
start in column 6 (first column is 0) and continuation lines are
denoted by a character in column 5.  In tab mode, statements follow a
TAB character.  Continuation lines begin with a TAB character followed
by a digit from 1 to 9.

If anyone is interested in trying out this modifed fortran mode, please
write and I will send a copy.  I am interested in getting bug fixes,
suggestions for improvement, and opinions on whether these changes
should be submitted for inclusion in the emacs distribution.

					Stephen A. Wood
					CEBAF
					Newport News, VA
					saw@hallc1.cebaf.gov

-----

;;; Notes to fortran-mode version 1.95
;;;  1. Fortran mode can support either fixed format or tab format.  Fixed
;;;     format is where statements start in column 6 (first column is 0)
;;;     and continuation lines are denoted by a character in column 5.
;;;     In tab mode, statements follow a tab character.  Continuation lines
;;;     are where the first character on a line is a tab and the second is
;;;     a digit from 1 to 9.
;;;  2. When fortran mode is called, the buffer is scanned to determine what
;;;     kind of formating is used.  Lines are skipped until a line is found
;;;     that begins with a tab or 6 spaces.  The mode for that buffer is
;;;     then set to either tab or fixed format based on that line.
;;;  3. If no line starting with a tab or 6 spaces is found before the end
;;;     of the buffer or in the first 1000 lines, the mode is set from the
;;;     variable `default-fortran-format-mode'.  t is tab mode, nil is
;;;     fixed format mode.  By default, fixed format mode is used.  To make
;;;     the default tabbing mode, put the following line in .emacs
;;;           (setq default-fortran-format-mode t)
;;;  4. The command `fortran-format-mode' will toggle between fixed and tab
;;;     formatting modes.  The file will not automatically be reformatted,
;;;     but either `indent-region' or `fortran-indent-subprogram' can be
;;;     used to reformat portions of the file.
;;;  5. Abbreviations for structure (;st), record (;re), and namelist(;na)
;;;     have been added.
Technical Details
Message-ID: <1991Mar22.144707.9942@murdoch.acc.Virginia.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!emory!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,5be3fdd2823ab9ba,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-03-22 06:47:07 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!emory!swrinde!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: saw@HALLC1.CEBAF.GOV (Stephen A. Wood)
Newsgroups: gnu.emacs.bug
Subject: TAB format support for fortran.el
Message-ID: <1991Mar22.144707.9942@murdoch.acc.Virginia.EDU>
Date: 22 Mar 91 14:47:07 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: saw@hallc1.cebaf.gov (Stephen A. Wood)
Distribution: gnu
Organization: CEBAF (Continuous Electron Beam Accelerator Facility)
Lines: 43
Approved: bug-gnu-emacs@prep.ai.mit.edu