[latex3-commits] [git/LaTeX3-latex3-latex3] gh590: Actually don't add c variants of \regex_show/log (520b655bf)

Bruno Le Floch blflatex at gmail.com
Mon Apr 26 23:34:19 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : gh590
Link       : https://github.com/latex3/latex3/commit/520b655bf26a5040baadd0b750cdefa235637005

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

commit 520b655bf26a5040baadd0b750cdefa235637005
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Mon Apr 26 23:34:19 2021 +0200

    Actually don't add c variants of \regex_show/log
    
    For all other regex functions we only provide N variants because this
    is a pretty specialized datatype.  Anyone in need can define them with
    \cs_generate_variant:Nn anyways.


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

520b655bf26a5040baadd0b750cdefa235637005
 l3kernel/l3regex.dtx              | 9 ++-------
 l3kernel/testfiles/m3regex007.lvt | 4 ++--
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index e3c76a11e..9c1612fde 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -528,10 +528,7 @@
 % \end{function}
 %
 % \begin{function}[added = 2021-04-26]
-%   {
-%     \regex_show:N, \regex_show:c, \regex_show:n,
-%     \regex_log:N, \regex_log:c, \regex_log:n,
-%   }
+%   {\regex_show:N, \regex_show:n, \regex_log:N, \regex_log:n}
 %   \begin{syntax}
 %     \cs{regex_show:n} \Arg{regex}
 %     \cs{regex_log:n} \Arg{regex}
@@ -5944,7 +5941,7 @@
 % \begin{macro}
 %   {
 %     \regex_show:n, \regex_log:n, \@@_show:Nn,
-%     \regex_show:N, \regex_show:c, \regex_log:N, \regex_log:c, \@@_show:NN
+%     \regex_show:N, \regex_log:N, \@@_show:NN
 %   }
 %   User functions: the \texttt{n} variant requires compilation first.
 %   Then show the variable with some appropriate text. The auxiliary
@@ -5961,9 +5958,7 @@
       { \l_@@_internal_a_tl } { }
   }
 \cs_new_protected:Npn \regex_show:N { \@@_show:NN \__kernel_msg_show:nnxxxx }
-\cs_generate_variant:Nn \regex_show:N { c }
 \cs_new_protected:Npn \regex_log:N { \@@_show:NN \__kernel_msg_log:nnxxxx }
-\cs_generate_variant:Nn \regex_log:N { c }
 \cs_new_protected:Npn \@@_show:NN #1#2
   {
     \__kernel_chk_defined:NT #2
diff --git a/l3kernel/testfiles/m3regex007.lvt b/l3kernel/testfiles/m3regex007.lvt
index 6d64b6030..1cde917a7 100644
--- a/l3kernel/testfiles/m3regex007.lvt
+++ b/l3kernel/testfiles/m3regex007.lvt
@@ -30,7 +30,7 @@
     \regex_show:n { \u{l_tmpa_tl}* \c{\u{l_tmpa_tl}|(?:\u{l_tmpa_int})?}{3}|y* }
     \regex_show:n { a(?: bc (?| de | f ){2} g | hi ){3,4}? }
     \regex_new:N \l_bar_regex
-    \regex_show:c { l_bar_regex }
+    \regex_show:N \l_bar_regex
     \regex_show:N \g_undefined_regex
   }
 
@@ -56,7 +56,7 @@
 \TEST { regex_log }
   {
     \regex_set:Nn \l_foo_regex { \A a|b| }
-    \regex_log:c { l_foo_regex }
+    \regex_log:N \l_foo_regex
     \SEPARATOR
     \regex_log:n { a \ur{l_foo_regex} b \c{\ur{l_foo_regex}{2,7}?|D} }
     \SEPARATOR





More information about the latex3-commits mailing list.