[latex3-commits] [l3svn] branch master updated: Make a conditional clearer

noreply at latex-project.org noreply at latex-project.org
Sun Jul 16 22:27:25 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  a6f4283   Make a conditional clearer
a6f4283 is described below

commit a6f42831312cd67607e04ce21a2807240273aa97
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jul 16 20:29:59 2017 +0100

    Make a conditional clearer
---
 l3packages/xparse/xparse.dtx |   17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index 9f43230..b61954c 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -1887,18 +1887,17 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_add_arg_spec:n #1
   {
-    \bool_if:NF \l_@@_long_bool
+    \bool_lazy_and:nnT
+      { ! \l_@@_long_bool }
+      { \l_@@_some_long_bool }
       {
-        \bool_if:NT \l_@@_some_long_bool
+        \bool_if:NT \l_@@_expandable_bool
           {
-            \bool_if:NT \l_@@_expandable_bool
-              {
-                \__msg_kernel_error:nnx { xparse } { inconsistent-long }
-                  { \iow_char:N \\ \l_@@_function_tl }
-                \@@_bad_def:wn
-              }
-            \bool_set_false:N \l_@@_grab_expandably_bool
+            \__msg_kernel_error:nnx { xparse } { inconsistent-long }
+              { \iow_char:N \\ \l_@@_function_tl }
+            \@@_bad_def:wn
           }
+        \bool_set_false:N \l_@@_grab_expandably_bool
       }
     \bool_if:NTF \l_@@_long_bool
       { \bool_set_true:N \l_@@_some_long_bool }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list