[latex3-commits] [git/LaTeX3-latex3-latex3] main: Actually don't add c variants of \regex_show/log (730c711af)

Bruno Le Floch blflatex at gmail.com
Tue Apr 27 15:56:19 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/730c711af62fccc34978daef74456f918d72d449

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

commit 730c711af62fccc34978daef74456f918d72d449
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.


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

730c711af62fccc34978daef74456f918d72d449
 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 0064bdc2b..6b7c371c8 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -535,10 +535,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}
@@ -5974,7 +5971,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
@@ -5991,9 +5988,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.