texlive[56576] Master/texmf-dist: regexpatch (6oct20)

commits+karl at tug.org commits+karl at tug.org
Wed Oct 7 00:00:05 CEST 2020


Revision: 56576
          http://tug.org/svn/texlive?view=revision&revision=56576
Author:   karl
Date:     2020-10-07 00:00:05 +0200 (Wed, 07 Oct 2020)
Log Message:
-----------
regexpatch (6oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/regexpatch/README
    trunk/Master/texmf-dist/doc/latex/regexpatch/regexpatch.pdf
    trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.dtx
    trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.ins
    trunk/Master/texmf-dist/tex/latex/regexpatch/regexpatch.sty

Modified: trunk/Master/texmf-dist/doc/latex/regexpatch/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/regexpatch/README	2020-10-06 21:59:48 UTC (rev 56575)
+++ trunk/Master/texmf-dist/doc/latex/regexpatch/README	2020-10-06 22:00:05 UTC (rev 56576)
@@ -6,9 +6,9 @@
 
 This version fixes a silly typo introduced in version 0.2c
 
-This is version 0.2d of the package (a maintainance release)
+This is version 0.2e of the package (a maintainance release)
 
- Copyright 2012-2018 Enrico Gregorio
+ Copyright 2012-2020 Enrico Gregorio
 
  It may be distributed and/or modified under the conditions of the
  LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -40,5 +40,5 @@
   it (the FAQ on CTAN in /help/uktug-FAQ gives more
   information about this magic place
 
-2018/05/02
+2020/10/06
 Enrico Gregorio

Modified: trunk/Master/texmf-dist/doc/latex/regexpatch/regexpatch.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.dtx	2020-10-06 21:59:48 UTC (rev 56575)
+++ trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.dtx	2020-10-06 22:00:05 UTC (rev 56576)
@@ -1,6 +1,6 @@
  % \iffalse meta-comment
 %
-%% File: regexpatch.dtx (C) Copyright 2012-2016 Enrico Gregorio
+%% File: regexpatch.dtx (C) Copyright 2012-2020 Enrico Gregorio
 %%
 %% It may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -25,7 +25,7 @@
 \newcommand{\sv}{[\texttt{*}]}
 %</driver>
 %<*driver|package>
-\GetIdInfo$Id: regexpatch.dtx 0.2d 2018-05-02 12:00:00Z Enrico $
+\GetIdInfo$Id: regexpatch.dtx 0.2e 2020-10-06 12:00:00Z Enrico $
           {Extending etoolbox patching commands}
 %</driver|package>
 %<*driver>
@@ -55,6 +55,7 @@
 %
 % \maketitle
 %
+% \changes{v0.2e}{2020/10/06}{Replaced deprecated commands}
 % \changes{v0.2d}{2018/05/02}{Fixed silly typo}
 % \changes{v0.2c}{2018/03/31}{Removed loading of \texttt{l3regex}}
 % \changes{v0.2b}{2016/05/15}{Fix for removed function}
@@ -701,7 +702,7 @@
 % A variant for checking a regex match so that we can give the second
 % argument as a token list.
 %    \begin{macrocode}
-\cs_generate_variant:Nn \regex_match:nnT {nV}
+\prg_generate_conditional_variant:Nnn \regex_match:nn {nV} { T,F,TF }
 %    \end{macrocode}
 %
 % \subsection{Functions}
@@ -757,8 +758,8 @@
   {
    \bool_set_false:N \l_xpatch_protect_bool
    \bool_set_false:N \l_xpatch_optional_bool
-   \tl_set:Nx \l_xpatch_name_tl { \cs_to_str:N #1  }
-   \tl_set:Nx \l_xpatch_repl_tl { \token_get_replacement_spec:N #1 }
+   \tl_set:Nf \l_xpatch_name_tl { \cs_to_str:N #1  }
+   \tl_set:Nf \l_xpatch_repl_tl { \token_get_replacement_spec:N #1 }
    \tl_clear:N \l_xpatch_type_tl
    \regex_match:nVT % \DeclareRobustCommand<control word>
      {^\\protect\ \\\u{l_xpatch_name_tl}\ \ }
@@ -802,7 +803,7 @@
      }
    \bool_if:NT \l_xpatch_protect_bool
      {
-      \tl_set:Nx \l_xpatch_repl_tl
+      \tl_set:Nf \l_xpatch_repl_tl
         { \exp_after:wN \token_get_replacement_spec:N
             \cs:w \l_xpatch_name_tl \cs_end: }
       \regex_match:nVT % \DeclareRobustCommand<any cs> with opt arg
@@ -842,9 +843,9 @@
       \exp_after:wN #1 \cs:w \l_xpatch_name_tl \cs_end: {#3}{#4}{#5}{#6}
      }
      {
-      \msg_term:n
+      \iow_term:x
         {
-         xpatch~message \\
+         xpatch~message: ^^J
         `\token_to_str:N #2'~is~undefined;~
         I'll~ignore~the~request.
         }
@@ -1054,7 +1055,7 @@
   {
    \bool_if:NT \l_xpatch_tracing_bool
      {
-      \msg_term:n { xpatch~message \\ #1 }
+      \iow_term:x { xpatch~message ^^J ~ #1 }
      }
   }
 \cs_new:Npn \xpatch_message_cstype:N #1
@@ -1651,7 +1652,7 @@
 % Gather the prefix (it is |\protected| when |#1| has been defined
 % with |\newrobustcmd|).
 %    \begin{macrocode}
-    \tl_set:Nf \l_xpatch_prefix_tl { \token_get_prefix_spec:N #1 }
+    \tl_set:Nx \l_xpatch_prefix_tl { \token_get_prefix_spec:N #1 }
     \tl_clear:N \l_xpatch_prefix_tl
     \tl_set_rescan:Nnx \l_xpatch_prefix_tl { } \l_xpatch_prefix_tl
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.ins	2020-10-06 21:59:48 UTC (rev 56575)
+++ trunk/Master/texmf-dist/source/latex/regexpatch/regexpatch.ins	2020-10-06 22:00:05 UTC (rev 56576)
@@ -1,6 +1,6 @@
 \iffalse meta-comment
 
-File regexpatch.ins Copyright (C) 2012-2018 Enrico Gregorio
+File regexpatch.ins Copyright (C) 2012-2020 Enrico Gregorio
 
 It may be distributed and/or modified under the conditions of the
 LaTeX Project Public License (LPPL), either version 1.3c of this

Modified: trunk/Master/texmf-dist/tex/latex/regexpatch/regexpatch.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/regexpatch/regexpatch.sty	2020-10-06 21:59:48 UTC (rev 56575)
+++ trunk/Master/texmf-dist/tex/latex/regexpatch/regexpatch.sty	2020-10-06 22:00:05 UTC (rev 56576)
@@ -10,7 +10,7 @@
 %% source files specified above.
 %% 
  % \iffalse meta-comment
-%% File: regexpatch.dtx (C) Copyright 2012-2016 Enrico Gregorio
+%% File: regexpatch.dtx (C) Copyright 2012-2020 Enrico Gregorio
 %%
 %% It may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -25,7 +25,7 @@
 %% The released version of this bundle is available from CTAN.
 %%
 \RequirePackage{expl3}
-\GetIdInfo$Id: regexpatch.dtx 0.2d 2018-05-02 12:00:00Z Enrico $
+\GetIdInfo$Id: regexpatch.dtx 0.2e 2020-10-06 12:00:00Z Enrico $
           {Extending etoolbox patching commands}
 \ProvidesExplPackage
   {\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
@@ -51,13 +51,13 @@
 \tl_new:N \l_xpatch_arg_tl
 \tl_new:N \l_xpatch_replacement_tl
 \tl_new:N \l_xpatch_type_tl % for debugging messages
-\cs_generate_variant:Nn \regex_match:nnT {nV}
+\prg_generate_conditional_variant:Nnn \regex_match:nn {nV} { T,F,TF }
 \cs_new_protected:Npn \xpatch_main_check:N #1
   {
    \bool_set_false:N \l_xpatch_protect_bool
    \bool_set_false:N \l_xpatch_optional_bool
-   \tl_set:Nx \l_xpatch_name_tl { \cs_to_str:N #1  }
-   \tl_set:Nx \l_xpatch_repl_tl { \token_get_replacement_spec:N #1 }
+   \tl_set:Nf \l_xpatch_name_tl { \cs_to_str:N #1  }
+   \tl_set:Nf \l_xpatch_repl_tl { \token_get_replacement_spec:N #1 }
    \tl_clear:N \l_xpatch_type_tl
    \regex_match:nVT % \DeclareRobustCommand<control word>
      {^\\protect\ \\\u{l_xpatch_name_tl}\ \ }
@@ -101,7 +101,7 @@
      }
    \bool_if:NT \l_xpatch_protect_bool
      {
-      \tl_set:Nx \l_xpatch_repl_tl
+      \tl_set:Nf \l_xpatch_repl_tl
         { \exp_after:wN \token_get_replacement_spec:N
             \cs:w \l_xpatch_name_tl \cs_end: }
       \regex_match:nVT % \DeclareRobustCommand<any cs> with opt arg
@@ -129,9 +129,9 @@
       \exp_after:wN #1 \cs:w \l_xpatch_name_tl \cs_end: {#3}{#4}{#5}{#6}
      }
      {
-      \msg_term:n
+      \iow_term:x
         {
-         xpatch~message \\
+         xpatch~message: ^^J
         `\token_to_str:N #2'~is~undefined;~
         I'll~ignore~the~request.
         }
@@ -291,7 +291,7 @@
   {
    \bool_if:NT \l_xpatch_tracing_bool
      {
-      \msg_term:n { xpatch~message \\ #1 }
+      \iow_term:x { xpatch~message ^^J ~ #1 }
      }
   }
 \cs_new:Npn \xpatch_message_cstype:N #1
@@ -851,7 +851,7 @@
   \bool_if:NTF \l_xpatch_optional_bool
    {
     \tl_set:Nx \l_xpatch_name_tl { \tl_tail:V \l_xpatch_name_tl }
-    \tl_set:Nf \l_xpatch_prefix_tl { \token_get_prefix_spec:N #1 }
+    \tl_set:Nx \l_xpatch_prefix_tl { \token_get_prefix_spec:N #1 }
     \tl_clear:N \l_xpatch_prefix_tl
     \tl_set_rescan:Nnx \l_xpatch_prefix_tl { } \l_xpatch_prefix_tl
     \tl_set_eq:Nc \l_xpatch_replacement_tl { \l_xpatch_name_tl }



More information about the tex-live-commits mailing list.