[latex3-commits] [git/LaTeX3-latex3-latex3] master: Further work on xparse guards (f9284924c)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Aug 20 16:26:42 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/f9284924c232f6a6c3227ca737d5d7d41da5fab0

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

commit f9284924c232f6a6c3227ca737d5d7d41da5fab0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Aug 20 15:26:42 2020 +0100

    Further work on xparse guards
    
    Now properly extracting! We likely want to tidy up later on.


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

f9284924c232f6a6c3227ca737d5d7d41da5fab0
 l3packages/xparse/xparse.dtx | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index 8fdf540ef..0991cded1 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -1518,10 +1518,8 @@
         \cs_generate_from_arg_count:cNnn
           { environment~ #1 ~end~aux~ } \cs_set:Npn
           \l_@@_current_arg_int {#4}
-%<*core>
         \cs_set_eq:cc {#1}       { environment~ #1 }
         \cs_set_eq:cc { end #1 } { environment~ #1 ~end }
-%</core>
       }
   }
 %    \end{macrocode}
@@ -1541,9 +1539,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_start_env:nnnnn #1#2
   {
-%<*core>
     \cs_if_exist_use:N \conditionally at traceoff
-%</core>
     \str_set:Nn \l_@@_environment_str {#2}
     \bool_set_true:N \l_@@_environment_bool
     \@@_start_aux:ccnnnn
@@ -1553,9 +1549,7 @@
   }
 \cs_new_protected:Npx \@@_start:nNNnnn #1#2#3
   {
-%<*core>
     \exp_not:n { \cs_if_exist_use:N \conditionally at traceoff }
-%</core>
     \exp_not:c { xparse~function~is~not~expandable }
     \exp_not:n { \bool_set_false:N \l_@@_environment_bool }
     \exp_not:N \@@_start_aux:NNnnnn
@@ -1592,9 +1586,7 @@
   {
     \tl_if_empty:NF \l_@@_defaults_tl { \@@_defaults: }
     \tl_if_empty:NF \l_@@_process_all_tl { \@@_args_process: }
-%<*core>
     \cs_if_exist_use:N \conditionally at traceon
-%</core>
     \exp_after:wN \l_@@_fn_code_tl \l_@@_args_tl
   }
 %    \end{macrocode}
@@ -3333,8 +3325,6 @@
       { \l_@@_fn_tl }
       { \@@_add_arg:o \c_novalue_tl }
   }
-%</package>
-%<*core>
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
@@ -3347,8 +3337,6 @@
 % \begin{macro}{\@@_grab_l_aux:nN}
 %   Argument grabbers for mandatory \TeX{} arguments are pretty simple.
 %    \begin{macrocode}
-%</core>
-%<*package>
 \cs_new_protected:Npn \@@_grab_l:w #1 \@@_run_code:
   { \@@_grab_l_aux:nN {#1} \cs_set_protected_nopar:Npn }
 \cs_new_protected:Npn \@@_grab_l_long:w #1 \@@_run_code:
@@ -3751,10 +3739,8 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_grab_v_aux_catcodes:
   {
-%<*core>
     \cs_set_eq:NN \do \char_set_catcode_other:N
     \dospecials
-%</core>
     \tex_endlinechar:D = `\^^M \scan_stop:
     \bool_if:NTF \l_@@_long_bool
       { \char_set_catcode_other:n { \tex_endlinechar:D } }
@@ -5175,8 +5161,10 @@
 % \end{macro}
 %
 %    \begin{macrocode}
-%<*core>
 \@@_file_end_hook:
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 %</core>
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.