Hello Karl,

On Thu, Jan 09, 2003 at 03:52:32PM -0500, Karl Berry wrote:
> I see now that you're right, the @udotaccent in the @section command is
> actually giving an error, at least sometimes.  I'll look again at it.

both @node and @section cause problems.
I've already solved it: patch attached.

I use this trick quite often: before writing certain ``fragile'' commands
to a file, I have to prevent their expansion.
I guess we might find more such commands in future.
might cause problem in a similar situation.

Thank you again, Pat, for finding this bug.

Have a nice day,
        Stepan Kasal
Fri Jan 10 06:37:16 CET 2003  Stepan Kasal  <[EMAIL PROTECTED]>

        * texinfo.tex (\preventexpand): New macro, prevents expansion of
          some macros by letting them to \relax.
          (\dosetq, \onepageout): Call also \preventexpand, not only
          \normalturnoffactive.  Perhaps \preventexpand could become
          part of \normalturnoffactive.
          

--- texinfo.tex.orig    Thu Jan  9 15:21:51 2003
+++ texinfo.tex Fri Jan 10 06:36:40 2003
@@ -240,6 +240,8 @@
     \indexdummies         % don't expand commands in the output.
     \normalturnoffactive  % \ in index entries must not stay \, e.g., if
                    % the page break happens to be in the middle of an example.
+    \preventexpand        % Do not expand some macros while writing them
+                          % to a file.
     \shipout\vbox{%
       % Do this early so pdf references go to the beginning of the page.
       \ifpdfmakepagedest \pdfmkdest{\the\pageno} \fi
@@ -5802,11 +5804,20 @@
 \def\dosetq#1#2{%
   {\let\folio=0%
    \normalturnoffactive
+   \preventexpand
    \edef\next{\write\auxfile{\internalsetq{#1}{#2}}}%
    \iflinks
      \next
    \fi
   }%
+}
+
+% Secure the macros which shouldn't be expanded before they are written
+% to a file.
+\def\preventexpand{%
+  \let\tieaccent = \relax
+  \let\ubaraccent = \relax
+  \let\udotaccent = \relax
 }
 
 % \internalsetq {foo}{page} expands into
_______________________________________________
Bug-texinfo mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-texinfo

Reply via email to