[latex3-commits] [latex3/latex2e] develop: Add a comment re. & in optimized ltcmd case (c0fad294)

github at latex-project.org github at latex-project.org
Mon Dec 4 07:43:38 CET 2023


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

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

commit c0fad29479fc77e064a1363d44833681be5d6e27
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Dec 4 06:43:38 2023 +0000

    Add a comment re. & in optimized ltcmd case


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

c0fad29479fc77e064a1363d44833681be5d6e27
 base/ltcmd.dtx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index dd2b7d43..441d8984 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -35,7 +35,7 @@
 %
 %    \begin{macrocode}
 \def\ltcmdversion{v1.2b}
-\def\ltcmddate{2023-12-01}
+\def\ltcmddate{2023-12-04}
 %    \end{macrocode}
 %
 %<*driver>
@@ -493,6 +493,10 @@
 %   that other parts of the kernel know these are set up by \pkg{ltcmd}.
 %   We need the two layers of redirection so that the \texttt{code} internal
 %   function has the same form as it would for any other document command.
+%   Optimization means that there is no \cs{group_align_safe_begin:} before
+%   grabbing the arguments, so anything involveing |&| tokens will not work.
+%   However, this is really only intended for making optional argument
+%   processing safe anyway, so in practice should not be an issue.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_declare_cmd_optimized:Nnn #1#2#3
   {





More information about the latex3-commits mailing list.