[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Make public non-expandable macros \protected (58ea958e)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Sep 21 15:34:12 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/58ea958e3ddd0c89a9c62e98e39f86bd3b38730a

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

commit 58ea958e3ddd0c89a9c62e98e39f86bd3b38730a
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Sep 21 10:34:12 2020 -0300

    Make public non-expandable macros \protected
    
    And step file versions


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

58ea958e3ddd0c89a9c62e98e39f86bd3b38730a
 base/lthooks.dtx   |  4 ++--
 base/ltshipout.dtx | 23 +++++++++++------------
 2 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 02b683c0..cb48570a 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -31,8 +31,8 @@
 %%% From File: lthooks.dtx
 %
 %    \begin{macrocode}
-\def\lthooksversion{v1.0a}
-\def\lthooksdate{2020/09/17}
+\def\lthooksversion{v1.0b}
+\def\lthooksdate{2020/09/21}
 %    \end{macrocode}
 %
 %<*driver>
diff --git a/base/ltshipout.dtx b/base/ltshipout.dtx
index ed23c5e1..3c4ee9d2 100644
--- a/base/ltshipout.dtx
+++ b/base/ltshipout.dtx
@@ -31,8 +31,8 @@
 %%% From File: ltshipout.dtx
 %
 %    \begin{macrocode}
-\providecommand\ltshipoutversion{v1.0b}
-\providecommand\ltshipoutdate{2020/09/13}
+\providecommand\ltshipoutversion{v1.0c}
+\providecommand\ltshipoutdate{2020/09/21}
 %    \end{macrocode}
 %
 %<*driver>
@@ -547,7 +547,7 @@
 %    follows closely the  ideas from \pkg{atbegshi}, so not
 %    documenting that here for now.
 %    \begin{macrocode}
-\cs_set:Npn\@@_execute: {
+\cs_set_protected:Npn \@@_execute: {
   \tl_set:Nx \l_@@_group_level_tl
      { \int_value:w \tex_currentgrouplevel:D }
   \tex_afterassignment:D \@@_execute_test_level:
@@ -572,7 +572,6 @@
 %    \end{macrocode}
 %  \end{macro}
 %
- 
 %
 %  \begin{macro}{\@@_execute_test_level:}
 %    If the group level has changed then we are still constructing
@@ -1151,7 +1150,7 @@
 %    (in case \LaTeX{} looks ahead and is not using the position for
 %    on the next page).
 %    \begin{macrocode}
-\cs_new:Npn \shipout_discard: {
+\cs_new_protected:Npn \shipout_discard: {
   \bool_gset_true:N \g_@@_discard_bool
 }
 %    \end{macrocode}
@@ -1379,7 +1378,7 @@
 %  \begin{macro}{\AtBeginDvi}
 %    
 %    \begin{macrocode}
-\DeclareRobustCommand \AtBeginDvi {\@@_add_firstpage_material:Nn \AtBeginDvi}
+\cs_new_protected:Npn \AtBeginDvi {\@@_add_firstpage_material:Nn \AtBeginDvi}
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -1530,7 +1529,7 @@
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>                 {\AtEndDvi}{atenddvi emulation}%
 \ExplSyntaxOn
-\cs_new:Npn \AtEndDvi {\AddToHook{shipout/lastpage}}
+\cs_new_protected:Npn \AtEndDvi {\AddToHook{shipout/lastpage}}
 \ExplSyntaxOff
 %    \end{macrocode}
 %    As the package is integrate we prevent loading (no need to roll that back):
@@ -1597,8 +1596,8 @@
 %  \begin{macro}{\AtBeginShipout,\AtBeginShipoutNext}
 %    Filling hooks
 %    \begin{macrocode}
-\def \AtBeginShipout     {\AddToHook{shipout/before}}
-\def \AtBeginShipoutNext {\AddToHookNext{shipout/before}}
+\protected \def \AtBeginShipout     {\AddToHook{shipout/before}}
+\protected \def \AtBeginShipoutNext {\AddToHookNext{shipout/before}}
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -1607,7 +1606,7 @@
 %    Slightly more complex as we need to know the name of the command under which the
 %    \hook{shipout/firstpage} hook is filled.
 %    \begin{macrocode}
-\def \AtBeginShipoutFirst
+\protected \def \AtBeginShipoutFirst
    {\@expl@@@shipout at add@firstpage at material@@Nn \AtBeginShipoutFirst}
 %    \end{macrocode}
 %  \end{macro}
@@ -1687,8 +1686,8 @@
 %  \begin{macro}{\EveryShipout,\AtNextShipout}
 %    This package has only two public commands so simulating it is easy:
 %    \begin{macrocode}
-\def \EveryShipout  {\AddToHook{shipout/before}}
-\def \AtNextShipout {\AddToHookNext{shipout/before}}
+\protected \def \EveryShipout  {\AddToHook{shipout/before}}
+\protected \def \AtNextShipout {\AddToHookNext{shipout/before}}
 %    \end{macrocode}
 %  \end{macro}
 %





More information about the latex3-commits mailing list.