* doc/misc/texinfo.tex: Revert previous change (Bug#23611).

This commit is contained in:
Paul Eggert 2016-05-25 10:39:14 -07:00
parent 3f4a9d9d26
commit 42275df3df

View file

@ -3,7 +3,7 @@
% Load plain if necessary, i.e., if running under initex. % Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
% %
\def\texinfoversion{2016-05-07.20} \def\texinfoversion{2016-04-14.07}
% %
% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@ -67,10 +67,6 @@
\everyjob{\message{[Texinfo version \texinfoversion]}% \everyjob{\message{[Texinfo version \texinfoversion]}%
\catcode`+=\active \catcode`\_=\active} \catcode`+=\active \catcode`\_=\active}
% LaTeX's \typeout. This ensures that the messages it is used for
% are identical in format to the corresponding ones from latex/pdflatex.
\def\typeout{\immediate\write17}%
\chardef\other=12 \chardef\other=12
% We never want plain's \outer definition of \+ in Texinfo. % We never want plain's \outer definition of \+ in Texinfo.
@ -1538,6 +1534,7 @@
% %
% PDF outline support % PDF outline support
% %
\pdfmakepagedesttrue \relax
% Emulate the primitive of pdfTeX % Emulate the primitive of pdfTeX
\def\pdfdest name#1 xyz{% \def\pdfdest name#1 xyz{%
\special{pdf:dest (name#1) [@thispage /XYZ @xpos @ypos]}% \special{pdf:dest (name#1) [@thispage /XYZ @xpos @ypos]}%
@ -3273,8 +3270,8 @@
% @{ @} @lbracechar{} @rbracechar{} all generate brace characters. % @{ @} @lbracechar{} @rbracechar{} all generate brace characters.
% Unless we're in typewriter, use \ecfont because the CM text fonts do % Unless we're in typewriter, use \ecfont because the CM text fonts do
% not have braces, and we don't want to switch into math. % not have braces, and we don't want to switch into math.
\def\mylbrace{{\ifmonospace\char123\else\ensuremath\lbrace\fi}} \def\mylbrace{{\ifmonospace\else\ecfont\fi \char123}}
\def\myrbrace{{\ifmonospace\char125\else\ensuremath\rbrace\fi}} \def\myrbrace{{\ifmonospace\else\ecfont\fi \char125}}
\let\{=\mylbrace \let\lbracechar=\{ \let\{=\mylbrace \let\lbracechar=\{
\let\}=\myrbrace \let\rbracechar=\} \let\}=\myrbrace \let\rbracechar=\}
\begingroup \begingroup
@ -4756,7 +4753,7 @@
\def\docodeindex#1{\edef\indexname{#1}\parsearg\docodeindexxxx} \def\docodeindex#1{\edef\indexname{#1}\parsearg\docodeindexxxx}
\def\docodeindexxxx #1{\doind{\indexname}{\code{#1}}} \def\docodeindexxxx #1{\doind{\indexname}{\code{#1}}}
% Used when writing an index entry out to an index file to prevent % Used when writing an index entry out to an index file, to prevent
% expansion of Texinfo commands that can appear in an index entry. % expansion of Texinfo commands that can appear in an index entry.
% %
\def\indexdummies{% \def\indexdummies{%
@ -4892,9 +4889,12 @@
% %
% We want to disable all macros so that they are not expanded by \write. % We want to disable all macros so that they are not expanded by \write.
\macrolist \macrolist
\definedummyword\value
% %
\normalturnoffactive \normalturnoffactive
%
% Handle some cases of @value -- where it does not contain any
% (non-fully-expandable) commands.
\makevalueexpandable
} }
% \commondummiesnofonts: common to \commondummies and \indexnofonts. % \commondummiesnofonts: common to \commondummies and \indexnofonts.
@ -5159,10 +5159,9 @@
\ifx\suffix\indexisfl\def\suffix{f1}\fi \ifx\suffix\indexisfl\def\suffix{f1}\fi
% Open the file % Open the file
\immediate\openout\csname#1indfile\endcsname \jobname.\suffix \immediate\openout\csname#1indfile\endcsname \jobname.\suffix
% Using \immediate above here prevents an object entering into the current % Using \immediate here prevents an object entering into the current box,
% box, which could confound checks such as those in \safewhatsit for % which could confound checks such as those in \safewhatsit for preceding
% preceding skips. % skips.
\typeout{Writing index file \jobname.\suffix}%
\fi} \fi}
\def\indexisfl{fl} \def\indexisfl{fl}
@ -5370,7 +5369,6 @@
% index. The easiest way to prevent this problem is to make sure % index. The easiest way to prevent this problem is to make sure
% there is some text. % there is some text.
\putwordIndexNonexistent \putwordIndexNonexistent
\typeout{No file \jobname.\indexname s.}%
\else \else
\catcode`\\ = 0 \catcode`\\ = 0
% %
@ -6684,14 +6682,7 @@
% 1 and 2 (the page numbers aren't printed), and so are the first % 1 and 2 (the page numbers aren't printed), and so are the first
% two pages of the document. Thus, we'd have two destinations named % two pages of the document. Thus, we'd have two destinations named
% `1', and two named `2'. % `1', and two named `2'.
\ifpdf \ifpdf \global\pdfmakepagedesttrue \fi
\global\pdfmakepagedesttrue
\else
\ifx\XeTeXrevision\thisisundefined
\else
\global\pdfmakepagedesttrue
\fi
\fi
} }
@ -8871,7 +8862,6 @@
% include an _ in the xref name, etc. % include an _ in the xref name, etc.
\indexnofonts \indexnofonts
\turnoffactive \turnoffactive
\def\value##1{##1}%
\expandafter\global\expandafter\let\expandafter\Xthisreftitle \expandafter\global\expandafter\let\expandafter\Xthisreftitle
\csname XR#1-title\endcsname \csname XR#1-title\endcsname
}% }%
@ -9012,14 +9002,14 @@
\fi\fi\fi \fi\fi\fi
} }
% \refx{NAME}{SUFFIX} - reference a cross-reference string named NAME. SUFFIX % Define \refx{NAME}{SUFFIX} to reference a cross-reference string named NAME.
% is output afterwards if non-empty. % If its value is nonempty, SUFFIX is output afterward.
%
\def\refx#1#2{% \def\refx#1#2{%
\requireauxfile \requireauxfile
{% {%
\indexnofonts \indexnofonts
\otherbackslash \otherbackslash
\def\value##1{##1}%
\expandafter\global\expandafter\let\expandafter\thisrefX \expandafter\global\expandafter\let\expandafter\thisrefX
\csname XR#1\endcsname \csname XR#1\endcsname
}% }%
@ -9044,18 +9034,16 @@
#2% Output the suffix in any case. #2% Output the suffix in any case.
} }
% This is the macro invoked by entries in the aux file. Define a control % This is the macro invoked by entries in the aux file. Usually it's
% sequence for a cross-reference target (we prepend XR to the control sequence % just a \def (we prepend XR to the control sequence name to avoid
% name to avoid collisions). The value is the page number. If this is a float % collisions). But if this is a float type, we have more work to do.
% type, we have more work to do.
% %
\def\xrdef#1#2{% \def\xrdef#1#2{%
{% Expand the node or anchor name to remove control sequences. {% The node name might contain 8-bit characters, which in our current
% \turnoffactive stops 8-bit characters being changed to commands % implementation are changed to commands like @'e. Don't let these
% like @'e. \refx does the same to retrieve the value in the definition. % mess up the control sequence name.
\indexnofonts \indexnofonts
\turnoffactive \turnoffactive
\def\value##1{##1}%
\xdef\safexrefname{#1}% \xdef\safexrefname{#1}%
}% }%
% %