]> diplodocus.org Git - nmh/commitdiff
Removed R from default PARINIT environment variable so that par(1)
authorDavid Levine <levinedl@acm.org>
Sat, 20 Dec 2014 15:21:50 +0000 (09:21 -0600)
committerDavid Levine <levinedl@acm.org>
Sat, 20 Dec 2014 15:21:50 +0000 (09:21 -0600)
does not consider an input word that is too long to be an error.

docs/contrib/replaliases
etc/mhn.defaults.sh

index 68e9443ea8dfafe6c0273b9b427414bf38d5c16f..3951aefcf4ecbc9117129cefb9f69bde49591833 100644 (file)
@@ -2,11 +2,13 @@
 ####
 #### convenience functions for various repl(1) commands
 
-#### If using par (see mhn.defaults), it really helps to have its
-#### PARINIT environment variable set.  If you really want it to be
-#### null, either comment this out or set it to, e.g., ' '.
+#### If using par (see mhn.defaults), it helps to have its PARINIT
+#### environment variable set.  If you really want it to be null,
+#### either comment this out or set it to, e.g., ' '.
+#### Removed "R" from PARINIT recommendation in par(1) man page so
+#### that it doesn't consider words that are too long to be an error.
 if [ -z "$PARINIT" ]; then
-    PARINIT='rTbgqR B=.,?_A_a Q=_s>|'
+    PARINIT='rTbgq B=.,?_A_a Q=_s>|'
     export PARINIT
 fi
 
@@ -21,3 +23,8 @@ rt() {
     repl -filter mhl.replywithoutbody -editor mhbuild \
          -convertargs text/html '' -convertargs text/plain '' "$@"
 }
+
+
+# Local Variables:
+# mode: sh
+# End:
index 2e43c870efc1716fb3314d43a3dd3ce14a612a5a..25d7e4af4f39369ef28b7a1d8b8074b76c5d1adb 100755 (executable)
@@ -26,11 +26,9 @@ TMP=/tmp/nmh_temp.$$
 trap "rm -f $TMP" 0 1 2 3 13 15
 
 if [ ! -z `$SEARCHPROG "$SEARCHPATH" par` ]; then
-    #### par fails on input lines that are too wide, so used fold(1)
-    #### to wrap them first.  The widths here correspond to those
-    #### for the text browsers below.
-    textfmt=' | fold -s -w 64 | par 64'
-    replfmt=" | fold -s -w 62 | sed 's/^\(.\)/> \1/; s/^$/>/;' | par 64"
+    #### The widths here correspond to those for the text browsers below.
+    textfmt=' | par 64'
+    replfmt=" | sed 's/^\(.\)/> \1/; s/^$/>/;' | par 64"
 elif [ ! -z `$SEARCHPROG "$SEARCHPATH" fmt` ]; then
     textfmt=' | fmt'
     replfmt=" | fmt | sed 's/^\(.\)/> \1/; s/^$/>/;'"