[latex3-commits] [git/LaTeX3-latex3-latex2e] gh881: use l3 protected definition for AddToNoCaseChangeList (c31117a3)

David Carlisle d.p.carlisle at gmail.com
Fri Jul 1 09:15:26 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh881
Link       : https://github.com/latex3/latex2e/commit/c31117a3949f53b5a7a01795998e927c4563b33a

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

commit c31117a3949f53b5a7a01795998e927c4563b33a
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Fri Jul 1 08:15:26 2022 +0100

    use l3 protected definition for AddToNoCaseChangeList


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

c31117a3949f53b5a7a01795998e927c4563b33a
 base/ltfinal.dtx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index bc713605..105833ea 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -1117,8 +1117,9 @@
 % |AddToNoCaseChangeList{\eqref}| would protect the argument of |\eqref|
 % in the same way as the argument of |\ref|.
 %    \begin{macrocode}
-\def\AddToNoCaseChangeList{\tl_put_right:Nn \l_text_case_exclude_arg_tl}
-\tl_put_right:Nn \l_text_case_exclude_arg_tl  { \NoCaseChange }
+\cs_new_protected_nopar:Npn\AddToNoCaseChangeList
+         {\tl_put_right:Nn \l_text_case_exclude_arg_tl}
+\AddToNoCaseChangeList{ \NoCaseChange }
 \cs_new_protected:Npn \NoCaseChange #1 {#1}
 \ExplSyntaxOff
 %    \end{macrocode}





More information about the latex3-commits mailing list.