[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Make non-expandable macros \protected (341206c3)

Frank Mittelbach frank.mittelbach at latex-project.org
Sun Sep 20 22:04:58 CEST 2020


Phelype

what is the reason for this change?

>      Make non-expandable macros \protected

the 2-3 public commands yes, but I see no point in changing the internal 
ones that should never need a protection (ok it doesn't hurt but I find 
it more unreadable personally)



>   \providecommand\ltshipoutversion{v1.0b}
> -\providecommand\ltshipoutdate{2020/09/13}
> +\providecommand\ltshipoutdate{2020/09/20}


1.0b is in public use so changing the *code* should mean change not just 
the date but the version as well (same with the last change)



>   % \begin{macro}{\@kernel at after@enddocument}
>   %    \begin{macrocode}
> -\g at addto@macro \@kernel at after@enddocument {
> +\tl_gput_right:Nn \@kernel at after@enddocument {
>     \int_compare:nNnT \@abspage at last = \maxdimen

I had deliberately used \@addto at macro on the kernel internal hook 
because that is the interface that has to be used elsewhere. I view this 
as a 2e internal hook  even though we add expl3 code to it in this case 
--- my way if trying to heep some consistency in usage
>       {
>   %    \end{macrocode}
> @@ -1253,7 +1248,7 @@
>   %    that in the \texttt{.aux} file for the next run.
>   %
>   %    \begin{macrocode}
> -\g at addto@macro \@kernel at after@enddocument at afterlastpage {
> +\tl_gput_right:Nn \@kernel at after@enddocument at afterlastpage {

ditto


frank


More information about the latex3-commits mailing list.