changeset 103652:1de9fbe264a4

(f90-break-delimiters, f90-no-break-re): Doc fixes.
author Glenn Morris <rgm@gnu.org>
date Wed, 01 Jul 2009 07:13:55 +0000
parents 53dc0b838c59
children b951fe72ccf7
files lisp/ChangeLog lisp/progmodes/f90.el
diffstat 2 files changed, 14 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Jul 01 02:58:52 2009 +0000
+++ b/lisp/ChangeLog	Wed Jul 01 07:13:55 2009 +0000
@@ -1,3 +1,7 @@
+2009-07-01  Glenn Morris  <rgm@gnu.org>
+
+	* progmodes/f90.el (f90-break-delimiters, f90-no-break-re): Doc fixes.
+
 2009-07-01  Evangelos Evangelou  <vangelis@email.unc.edu>  (tiny change)
 
 	* progmodes/f90.el (f90-no-break-re): Add "(/" and "/)".  (Bug#3730)
--- a/lisp/progmodes/f90.el	Wed Jul 01 02:58:52 2009 +0000
+++ b/lisp/progmodes/f90.el	Wed Jul 01 07:13:55 2009 +0000
@@ -254,9 +254,10 @@
 
 (defcustom f90-break-delimiters "[-+\\*/><=,% \t]"
   "Regexp matching delimiter characters at which lines may be broken.
-There are certain tokens comprised entirely of characters
-matching this regexp that should not be split, and these are
-specified by the constant `f90-no-break-re'."
+There are some common two-character tokens where one or more of
+the members matches this regexp.  Although Fortran allows breaks
+within lexical tokens (provided the next line has a beginning ampersand),
+the constant `f90-no-break-re' ensures that such tokens are not split."
   :type  'regexp
   :group 'f90)
 (put 'f90-break-delimiters 'safe-local-variable 'stringp)
@@ -824,11 +825,12 @@
 
 (defconst f90-no-break-re
   (regexp-opt '("**" "//" "=>" ">=" "<=" "==" "/=" "(/" "/)") 'paren)
-  "Regexp specifying where not to break lines when filling.
-This regexp matches certain tokens comprised entirely of
-characters matching the regexp `f90-break-delimiters' that should
-not be split by filling.  Each element is assumed to be two
-characters long.")
+  "Regexp specifying two-character tokens not to split when breaking lines.
+Each token has one or more of the characters from `f90-break-delimiters'.
+Note that if only one of the characters is from that variable,
+then the presence of the token here allows a line-break before or
+after the other character, where a break would not normally be
+allowed.  This minor issue currently only affects \"(/\" and \"/)\".")
 
 (defvar f90-cache-position nil
   "Temporary position used to speed up region operations.")