texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[6923] emergency definition for active newline


From: Gavin D. Smith
Subject: [6923] emergency definition for active newline
Date: Mon, 04 Jan 2016 21:23:45 +0000

Revision: 6923
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6923
Author:   gavin
Date:     2016-01-04 21:23:44 +0000 (Mon, 04 Jan 2016)
Log Message:
-----------
emergency definition for active newline

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/doc/texinfo.tex

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-01-04 21:11:25 UTC (rev 6922)
+++ trunk/ChangeLog     2016-01-04 21:23:44 UTC (rev 6923)
@@ -1,5 +1,11 @@
 2016-01-04  Gavin Smith  <address@hidden>
 
+       * doc/texinfo.tex (\enableemergencybackslash): New macro.
+       (\fixbackslash): Use it, in order to give newline a default
+       active definition.
+
+2016-01-04  Gavin Smith  <address@hidden>
+
        * doc/texinfo.tex, NEWS: For XeTeX and LuaTeX, use input by 
        bytes instead of by UTF-8 codepoints.  Documents encoded in 
        UTF-8 reported broken by Werner Lemberg.

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2016-01-04 21:11:25 UTC (rev 6922)
+++ trunk/doc/texinfo.tex       2016-01-04 21:23:44 UTC (rev 6923)
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2016-01-04.20}
+\def\texinfoversion{2016-01-04.21}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -11029,9 +11029,20 @@
 address@hidden@^=7 @address@hidden
 @address@hidden input address@hidden
 
+% Emergency active definition of newline, in case an active newline token
+% appears by mistake.
address@hidden@^=7 @catcode13=13%
address@hidden@enableemergencynewline{%
+  @gdef^^M{%
+    @par%
+    %<warning: active newline>@par%
+}}}
+
+
 @address@hidden
   @address@hidden @let\ = @ttbackslash @fi
   @catcode13=5 % regular end of line
+  @enableemergencynewline
   @address@hidden@texinfoc
   % Also turn back on active characters that might appear in the input
   % file name, in case not using a pre-dumped format.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]