texinfo-commits
[Top][All Lists]
Advanced

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

[7186] expand @value at time of writing to auxiliary files


From: gavinsmith0123
Subject: [7186] expand @value at time of writing to auxiliary files
Date: Thu, 26 May 2016 18:07:32 +0000 (UTC)

Revision: 7186
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7186
Author:   gavin
Date:     2016-05-26 18:07:31 +0000 (Thu, 26 May 2016)
Log Message:
-----------
expand @value at time of writing to auxiliary files

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-05-25 19:40:43 UTC (rev 7185)
+++ trunk/ChangeLog     2016-05-26 18:07:31 UTC (rev 7186)
@@ -1,3 +1,12 @@
+2016-05-26  Gavin Smith  <address@hidden>
+
+       * doc/texinfo.tex (\dummyvalue): New definition of @value for 
+       writing to auxiliary files.  Expand the @value at the time of 
+       writing, reversing change on 2016-05-26.
+       (\commondummies): Use \dummyvalue definition for @value.
+       (Files using @value's in section titles broken when value was 
+       @set after the table of contents, reported by Paul Eggert.
+
 2016-05-24  Gavin Smith  <address@hidden>
 
        * tp/Texinfo/Parser.pm (_abort_empty_line): Look for a 

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2016-05-25 19:40:43 UTC (rev 7185)
+++ trunk/doc/texinfo.tex       2016-05-26 18:07:31 UTC (rev 7186)
@@ -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-05-07.20}
+\def\texinfoversion{2016-05-26.19}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -4606,6 +4606,19 @@
   \fi
 }
 
+% Like \expandablevalue, but completely expandable (the \message in the
+% definition above operates at the execution level of TeX).  Used when
+% writing to auxiliary files, due to the expansion that \write does.
+%
+% NB flag names containing - or _ may not work here.
+\def\dummyvalue#1{%
+  \expandafter\ifx\csname SET#1\endcsname\relax
+    [No value for ``#1'']%
+  \else
+    \csname SET#1\endcsname
+  \fi
+}
+
 % @ifset VAR ... @end ifset reads the `...' iff VAR has been defined
 % with @set.
 % 
@@ -4892,7 +4905,7 @@
   %
   % We want to disable all macros so that they are not expanded by \write.
   \macrolist
-  \definedummyword\value
+  \let\value\dummyvalue
   %
   \normalturnoffactive
 }




reply via email to

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