texinfo-commits
[Top][All Lists]
Advanced

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

[7784] place \gdef with \csname within a group


From: gavinsmith0123
Subject: [7784] place \gdef with \csname within a group
Date: Sun, 14 May 2017 10:56:52 -0400 (EDT)

Revision: 7784
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7784
Author:   gavin
Date:     2017-05-14 10:56:51 -0400 (Sun, 14 May 2017)
Log Message:
-----------
place \gdef with \csname within a group

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2017-05-14 11:41:37 UTC (rev 7783)
+++ trunk/ChangeLog     2017-05-14 14:56:51 UTC (rev 7784)
@@ -1,5 +1,10 @@
 2017-05-13  Gavin Smith  <address@hidden>
 
+       * doc/texinfo.tex (\xrdef): Place a \gdef using a \csname
+       within a group to avoid save stack build-up for long aux files.
+
+2017-05-13  Gavin Smith  <address@hidden>
+
        * info/indices.c (info_next_index_match): Remove full stop from 
        end of message.  (Missed on 2017-05-13.  Report from Benno 
        Schulenberg.)

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2017-05-14 11:41:37 UTC (rev 7783)
+++ trunk/doc/texinfo.tex       2017-05-14 14:56:51 UTC (rev 7784)
@@ -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{2017-04-14.11}
+\def\texinfoversion{2017-05-14.14}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -9118,7 +9118,13 @@
     \xdef\safexrefname{#1}%
   }%
   %
-  \expandafter\gdef\csname XR\safexrefname\endcsname{#2}% remember this xref
+  \bgroup
+    \expandafter\gdef\csname XR\safexrefname\endcsname{#2}%
+  \egroup
+  % We put the \gdef inside a group to avoid the definitions building up on 
+  % TeX's save stack, which can cause it to run out of space for aux files 
with 
+  % thousands of lines.  \gdef doesn't use the save stack, but \csname does
+  % when it defines an unknown control sequence as \relax. 
   %
   % Was that xref control sequence that we just defined for a float?
   \expandafter\iffloat\csname XR\safexrefname\endcsname




reply via email to

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