[latex3-commits] [git/LaTeX3-latex3-latex2e] gh373: Add missing redefinitions for rollback (e02f4df7)

PhelypeOleinik tex.phelype at gmail.com
Fri Aug 21 01:26:18 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh373
Link       : https://github.com/latex3/latex2e/commit/e02f4df7626978aebcd8be7cd4ad6379dd396eea

>---------------------------------------------------------------

commit e02f4df7626978aebcd8be7cd4ad6379dd396eea
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Thu Aug 20 20:26:18 2020 -0300

    Add missing redefinitions for rollback
    
    And move \kernel at make@fragile near \MakeRobust


>---------------------------------------------------------------

e02f4df7626978aebcd8be7cd4ad6379dd396eea
 base/ltdefns.dtx | 80 +++++++++++++++++++++++++++++---------------------------
 1 file changed, 41 insertions(+), 39 deletions(-)

diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index a1817674..23fcbd44 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -1286,6 +1286,45 @@
 %    \end{macrocode}
 % \end{macro}
 %
+%  \begin{macro}{\kernel at make@fragile}
+%    The opposite of |\MakeRobust| execpt that it doesn't do many
+%    checks as it is internal to the kernel. Why does one want such a
+%    thing?
+%    Only for compatibility reasons if \texttt{latexrelease} requests
+%    a rollback of the kernel. For this reason we pretend that this
+%    command existed in all earler versions of \LaTeX{} i.e., we are
+%    not rolling it back since we need it precisely then. But we have
+%    to get it into the \texttt{latexrelease} file so that a roll
+%    forward is possible too.
+%    \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease>                 {\kernel at make@fragile}{Undo robustness}%
+\def\kernel at make@fragile#1{%
+  \@ifundefined{\expandafter\@gobble\string#1\space}%
+%    \end{macrocode}
+%    If not robust do nothing.
+%    \begin{macrocode}
+     {}%
+%    \end{macrocode}
+%    Otherwise copy \verb*=\foo = back to \verb=\foo= and then undefine
+%    the payload command.
+%    \begin{macrocode}
+     {%
+      \global\expandafter\let\expandafter #1\csname
+      \expandafter\@gobble\string#1\space\endcsname
+      \global\expandafter\let\csname
+      \expandafter\@gobble\string#1\space\endcsname\@undefined
+     }%
+}
+%<latexrelease>\EndIncludeInRelease
+%</2ekernel|latexrelease>
+%<*2ekernel>
+%    \end{macrocode}
+%  \end{macro}
+%
+%
 % \subsection{Acting on robust commands}
 %
 %   With most document level commands being robust now there is more of a
@@ -1787,51 +1826,14 @@
 %<latexrelease>   \@if at newcommand, and \@copy at newcommand}%
 %<latexrelease>\let\@if at DeclareRobustCommand\@undefined
 %<latexrelease>\let\@copy at DeclareRobustCommand\@undefined
+%<latexrelease>\let\@show at DeclareRobustCommand\@undefined
 %<latexrelease>\let\@if at newcommand\@undefined
 %<latexrelease>\let\@copy at newcommand\@undefined
+%<latexrelease>\let\@show at newcommand\@undefined
 %<latexrelease>\EndIncludeInRelease
 %<*2ekernel>
 %    \end{macrocode}
 %
-%  \begin{macro}{\kernel at make@fragile}
-%    The opposite of |\MakeRobust| execpt that it doesn't do many
-%    checks as it is internal to the kernel. Why does one want such a
-%    thing?
-%    Only for compatibility reasons if \texttt{latexrelease} requests
-%    a rollback of the kernel. For this reason we pretend that this
-%    command existed in all earler versions of \LaTeX{} i.e., we are
-%    not rolling it back since we need it precisely then. But we have
-%    to get it into the \texttt{latexrelease} file so that a roll
-%    forward is possible too.
-%    \begin{macrocode}
-%</2ekernel>
-%<*2ekernel|latexrelease>
-%<latexrelease>\IncludeInRelease{0000/00/00}%
-%<latexrelease>                 {\kernel at make@fragile}{Undo robustness}%
-\def\kernel at make@fragile#1{%
-  \@ifundefined{\expandafter\@gobble\string#1\space}%
-%    \end{macrocode}
-%    If not robust do nothing.
-%    \begin{macrocode}
-     {}%
-%    \end{macrocode}
-%    Otherwise copy \verb*=\foo = back to \verb=\foo= and then undefine
-%    the payload command.
-%    \begin{macrocode}
-     {%
-      \global\expandafter\let\expandafter #1\csname
-      \expandafter\@gobble\string#1\space\endcsname
-      \global\expandafter\let\csname
-      \expandafter\@gobble\string#1\space\endcsname\@undefined
-     }%
-}
-%<latexrelease>\EndIncludeInRelease
-%</2ekernel|latexrelease>
-%<*2ekernel>
-%    \end{macrocode}
-%  \end{macro}
-%
-%
 %
 % \subsection{Internal defining commands}
 %





More information about the latex3-commits mailing list.