From bab233610e0062c72a80b317506f564428cf99c4 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 21 Aug 2008 05:37:29 +0000 Subject: [PATCH] (Fortran Columns): Document `fortran-line-length'. --- doc/emacs/fortran-xtra.texi | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/doc/emacs/fortran-xtra.texi b/doc/emacs/fortran-xtra.texi index 5e645b4a57f..3a46837ab9c 100644 --- a/doc/emacs/fortran-xtra.texi +++ b/doc/emacs/fortran-xtra.texi @@ -458,20 +458,28 @@ Otherwise (and by default), the break comes before the delimiter. @node Fortran Columns @subsection Checking Columns in Fortran +@vindex fortran-line-length +In standard Fortran 77, anything beyond column 72 is ignored. +Most compilers provide an option to change this (for example, +@samp{-ffixed-line-length-N} in gfortran). Customize the variable +@code{fortran-line-length} to change the line length in Fortran mode. + @table @kbd @item C-c C-r Display a ``column ruler'' momentarily above the current line (@code{fortran-column-ruler}). @item C-c C-w -Split the current window horizontally temporarily so that it is 72 -columns wide (@code{fortran-window-create-momentarily}). This may -help you avoid making lines longer than the 72-character limit that -some Fortran compilers impose. +Split the current window horizontally temporarily so that it is +@code{fortran-line-length} columns wide +(@code{fortran-window-create-momentarily}). This may help you avoid +making lines longer than the character limit imposed by your Fortran +compiler. @item C-u C-c C-w -Split the current window horizontally so that it is 72 columns wide -(@code{fortran-window-create}). You can then continue editing. +Split the current window horizontally so that it is +@code{fortran-line-length} columns wide (@code{fortran-window-create}). +You can then continue editing. @item M-x fortran-strip-sequence-nos -Delete all text in column 72 and beyond. +Delete all text in column @code{fortran-line-length} and beyond. @end table @kindex C-c C-r @r{(Fortran mode)} @@ -501,9 +509,9 @@ display. @kindex C-c C-w @r{(Fortran mode)} @findex fortran-window-create-momentarily @kbd{C-c C-w} (@code{fortran-window-create-momentarily}) temporarily -splits the current window horizontally, making a window 72 columns -wide, so you can see any lines that are too long. Type a space to -restore the normal width. +splits the current window horizontally, making a window +@code{fortran-line-length} columns wide, so you can see any lines that +are too long. Type a space to restore the normal width. @kindex C-u C-c C-w @r{(Fortran mode)} @findex fortran-window-create @@ -514,8 +522,9 @@ immediately see when you make a line too wide to be correct Fortran. @findex fortran-strip-sequence-nos The command @kbd{M-x fortran-strip-sequence-nos} deletes all text in -column 72 and beyond, on all lines in the current buffer. This is the -easiest way to get rid of old sequence numbers. +column @code{fortran-line-length} and beyond, on all lines in the +current buffer. This is the easiest way to get rid of old sequence +numbers. @node Fortran Abbrev @subsection Fortran Keyword Abbrevs -- 2.39.5