[latex3-commits] [git/LaTeX3-latex3-latex2e] gh373: Organise by type (dc6336df)

PhelypeOleinik tex.phelype at gmail.com
Thu Aug 20 04:20:47 CEST 2020


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

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

commit dc6336df25f4009503f69b82b3b9efe632a0dd7d
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Wed Aug 19 22:43:27 2020 -0300

    Organise by type


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

dc6336df25f4009503f69b82b3b9efe632a0dd7d
 base/ltdefns.dtx | 62 ++++++++++++++++++++++++++++++--------------------------
 1 file changed, 33 insertions(+), 29 deletions(-)

diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index 501f4539..e2ddba74 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -1567,6 +1567,17 @@
 % \end{macro}
 %
 %
+%    \begin{macrocode}
+%</2ekernel>
+%<latexrelease>\IncludeInRelease{2020-10-01}{\@if at DeclareRobustCommand}
+%<latexrelease>  {Add \@if at DeclareRobustCommand, \@if at newcommand,
+%<latexrelease>       \@copy at DeclareRobustCommand, \@copy at newcommand,
+%<latexrelease>       \@show at DeclareRobustCommand, \@show at newcommand}%
+%<*2ekernel|latexrelease>
+%    \end{macrocode}
+%
+% \subsubsection{Commands defined with \cs{DeclareRobustCommand}}
+%
 % \begin{macro}{\@if at DeclareRobustCommand}
 % \begin{macro}{\@copy at DeclareRobustCommand}
 % \begin{macro}{\copy at kernel@robust at command}
@@ -1582,14 +1593,6 @@
 %   \verb=\cmd= is exactly \verb*=\protect\cmd =.
 %
 %    \begin{macrocode}
-%</2ekernel>
-%<latexrelease>\IncludeInRelease{2020-10-01}{\@if at DeclareRobustCommand}
-%<latexrelease>  {Add \@if at DeclareRobustCommand, \@copy at DeclareRobustCommand,
-%<latexrelease>   \@if at newcommand, and \@copy at newcommand}%
-%<*2ekernel|latexrelease>
-%    \end{macrocode}
-%
-%    \begin{macrocode}
 \def\@if at DeclareRobustCommand#1{%
   \begingroup
     \escapechar=`\\
@@ -1644,10 +1647,14 @@
     {\@copy at newcommand#1#2}%
     {\declare at commandcopy@let#1#2}}
 %    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \subsubsection{Commands defined with \cs{newcommand} (with optional argument)}
 %
 % \begin{macro}{\@if at newcommand}
 % \begin{macro}{\@copy at newcommand}
-%
 %   A command \verb=\cmd= (or \verb*=\cmd =, if it was defined with
 %   \cs{DeclareRobustCommand}) with an optional argument will expand to
 %   \verb*=\@protected at testopt\cmd\\cmd{<opt>}=.  To check that we look at the
@@ -1683,6 +1690,23 @@
   \let\csname\@backslashchar\@expl at cs@to at str@@N#1\expandafter\endcsname
       \csname\@backslashchar\@expl at cs@to at str@@N#2\endcsname}
 %    \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%   Now the rollback code.
+%    \begin{macrocode}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000-00-00}{\@if at DeclareRobustCommand}
+%<latexrelease>  {Undefine \@if at DeclareRobustCommand, \@copy at DeclareRobustCommand,
+%<latexrelease>   \@if at newcommand, and \@copy at newcommand}%
+%<latexrelease>\let\@if at DeclareRobustCommand\@undefined
+%<latexrelease>\let\@copy at DeclareRobustCommand\@undefined
+%<latexrelease>\let\@if at newcommand\@undefined
+%<latexrelease>\let\@copy at newcommand\@undefined
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+%    \end{macrocode}
 %
 %   Steal the definition of \textsf{expl3}'s \cs{cs\string_to\string_str:N} for
 %   a while.  This should disappear as soon as this macro is defined in
@@ -1711,26 +1735,6 @@
   \fi}
 %    \end{macrocode}
 %
-%   Now the rollback code.
-%    \begin{macrocode}
-%</2ekernel|latexrelease>
-%<latexrelease>\EndIncludeInRelease
-%<latexrelease>\IncludeInRelease{0000-00-00}{\@if at DeclareRobustCommand}
-%<latexrelease>  {Undefine \@if at DeclareRobustCommand, \@copy at DeclareRobustCommand,
-%<latexrelease>   \@if at newcommand, and \@copy at newcommand}%
-%<latexrelease>\let\@if at DeclareRobustCommand\@undefined
-%<latexrelease>\let\@copy at DeclareRobustCommand\@undefined
-%<latexrelease>\let\@if at newcommand\@undefined
-%<latexrelease>\let\@copy at newcommand\@undefined
-%<latexrelease>\EndIncludeInRelease
-%<*2ekernel>
-%    \end{macrocode}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \end{macro}
-% \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





More information about the latex3-commits mailing list.