X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tex%2Ftexinfo.tex;h=ff07c36085a8c9d3762f72f1ee336e951bffec81;hb=b77d9662d42abb0169e56eb26bb6d26d487f826c;hp=ab6a1c4d21d61f7485bab85703b61a0d4f45ce35;hpb=19c35ecafd1febb9350eff2f9a1ec8585dcde26c;p=lilypond.git diff --git a/tex/texinfo.tex b/tex/texinfo.tex index ab6a1c4d21..ff07c36085 100644 --- a/tex/texinfo.tex +++ b/tex/texinfo.tex @@ -3234,6 +3234,32 @@ where each line of input produces a line of output.} \let\{ = \mylbrace \let\} = \myrbrace % + % I don't entirely understand this, but when an index entry is + % generated from a macro call, the \endinput which \scanmacro inserts + % causes processing to be prematurely terminated. This is, + % apparently, because \indexsorttmp is fully expanded, and \endinput + % is an expandable command. The redefinition below makes \endinput + % disappear altogether for that purpose -- although logging shows that + % processing continues to some further point. On the other hand, it + % seems \endinput does not hurt in the printed index arg, since that + % is still getting written without apparent harm. + % + % Sample source (mac-idx3.tex, reported by Graham Percival to + % help-texinfo, 22may06): + % @macro funindex {WORD} + % @findex xyz + % @end macro + % ... + % @funindex commtest + % + % The above is not enough to reproduce the bug, but it gives the flavor. + % + % Sample whatsit resulting: + % address@hidden@folio address@hidden address@hidden }}} + % + % So: + \let\endinput = \empty + % % Do the redefinitions. \commondummies }