[latex3-commits] [latex3/latex2e] gh1189: Update base/ltcmd.dtx (b9794349)

github at latex-project.org github at latex-project.org
Wed Nov 29 08:33:12 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : gh1189
Link       : https://github.com/latex3/latex2e/commit/b979434913d3565be4ee1c8768833a81df6ad686

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

commit b979434913d3565be4ee1c8768833a81df6ad686
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 29 07:33:12 2023 +0000

    Update base/ltcmd.dtx
    
    Co-authored-by: Yukai Chou <muzimuzhi at gmail.com>


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

b979434913d3565be4ee1c8768833a81df6ad686
 base/ltcmd.dtx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index c60cbec8..10d6f82f 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -468,22 +468,22 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_declare_cmd_code:Nnn #1#2
   {
-    \bool_lazy_all:nTF
+    \bool_lazy_or:nTF
       {
-        { ! \l_@@_environment_bool }
+        { \l_@@_environment_bool }
         {
-          ! \bool_lazy_and_p:nn
+          \bool_lazy_and_p:nn
             { \l_@@_some_short_bool }
             { \l_@@_some_long_bool }
         }
-        { \tl_if_blank_p:e { \@@_all_m_check:n {#2} } }
+        { ! \tl_if_blank_p:e { \@@_all_m_check:n {#2} } }
       }
-      { \@@_declare_cmd_optimised:Nnn }
       {
         \bool_if:NTF \l_@@_grab_expandably_bool
           { \@@_declare_cmd_code_expandable:Nnn }
           { \@@_declare_cmd_code_aux:Nnn }
       }
+      { \@@_declare_cmd_optimised:Nnn }
         #1 {#2}
    }
 %    \end{macrocode}





More information about the latex3-commits mailing list.