[latex3-commits] [l3svn] r6907 - Remove unused flag_set_trap from experimental l3flag

noreply at latex-project.org noreply at latex-project.org
Mon Feb 13 03:01:18 CET 2017


Author: bruno
Date: 2017-02-13 03:01:18 +0100 (Mon, 13 Feb 2017)
New Revision: 6907

Modified:
   trunk/l3experimental/l3str/l3flag.dtx
   trunk/l3experimental/l3str/l3regex.dtx
   trunk/l3experimental/l3str/testfiles/m3flag001.lvt
   trunk/l3experimental/l3str/testfiles/m3flag001.tlg
Log:
Remove unused flag_set_trap from experimental l3flag


Modified: trunk/l3experimental/l3str/l3flag.dtx
===================================================================
--- trunk/l3experimental/l3str/l3flag.dtx	2017-02-12 20:07:58 UTC (rev 6906)
+++ trunk/l3experimental/l3str/l3flag.dtx	2017-02-13 02:01:18 UTC (rev 6907)
@@ -129,19 +129,6 @@
 %   Writes the \meta{flag}'s height to the log file.
 % \end{function}
 %
-% \begin{function}{\flag_set_trap:nn}
-%   \begin{syntax}
-%     \cs{flag_set_trap:nn} \Arg{flag name} \Arg{inline function}
-%   \end{syntax}
-%   Changes the action that is taken when the \meta{flag} is raised
-%   using \cs{flag_raise:n}. Instead of the default action which is to
-%   increase the \meta{flag}'s height by $1$, the \meta{inline function}
-%   will be called, receiving the current flag's height as |#1|. The
-%   \meta{inline function} should expand to nothing; \emph{e.g.}, it
-%   could call \cs{msg_expandable_error:n}. This function is very
-%   experimental.
-% \end{function}
-%
 % \section{Expandable flag commands}
 %
 % \begin{function}[EXP,pTF]{\flag_if_exist:n}
@@ -266,25 +253,6 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{\flag_set_trap:nn}
-%   Redefine the trap if the flag exists.
-%    \begin{macrocode}
-\cs_new_protected:Npn \flag_set_trap:nn #1#2
-  {
-    \flag_if_exist:nTF {#1}
-      { \cs_set:cpn { flag~#1 } ##1 ; {#2} }
-      { \__msg_kernel_error:nnn { kernel } { flag-not-defined } {#1} }
-  }
-\__msg_kernel_new:nnnn { kernel } { flag-not-defined }
-  { Flag~#1~undefined. }
-  {
-    \c_@@_coding_error_text_tl
-    LaTeX~has~been~asked~to~affect~the~flag~#1~but~
-    this~has~not~been~defined~yet.
-  }
-%    \end{macrocode}
-% \end{macro}
-%
 % \subsection{Expandable flag commands}
 %
 % \begin{macro}[EXP, pTF]{\flag_if_exist:n}

Modified: trunk/l3experimental/l3str/l3regex.dtx
===================================================================
--- trunk/l3experimental/l3str/l3regex.dtx	2017-02-12 20:07:58 UTC (rev 6906)
+++ trunk/l3experimental/l3str/l3regex.dtx	2017-02-13 02:01:18 UTC (rev 6907)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-%% File: l3regex.dtx Copyright (C) 2011-2016 The LaTeX3 Project
+%% File: l3regex.dtx Copyright (C) 2011-2017 The LaTeX3 Project
 %
 % 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/l3experimental/l3str/testfiles/m3flag001.lvt
===================================================================
--- trunk/l3experimental/l3str/testfiles/m3flag001.lvt	2017-02-12 20:07:58 UTC (rev 6906)
+++ trunk/l3experimental/l3str/testfiles/m3flag001.lvt	2017-02-13 02:01:18 UTC (rev 6907)
@@ -74,14 +74,4 @@
     \flag_log:n { other }
   }
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\TEST { set_trap }
-  {
-    \flag_raise:n {C}
-    \flag_raise:n {C}
-    \flag_set_trap:nn {C} { \__msg_expandable_error:n {flag~C~#1} }
-    \flag_raise:n {C}
-    \flag_log:n {C}
-  }
-
 \END

Modified: trunk/l3experimental/l3str/testfiles/m3flag001.tlg
===================================================================
--- trunk/l3experimental/l3str/testfiles/m3flag001.tlg	2017-02-12 20:07:58 UTC (rev 6906)
+++ trunk/l3experimental/l3str/testfiles/m3flag001.tlg	2017-02-13 02:01:18 UTC (rev 6907)
@@ -72,17 +72,3 @@
 | defined yet.
 |...............................................
 ============================================================
-============================================================
-TEST 5: set_trap
-============================================================
-! Undefined control sequence.
-<argument> \LaTeX3 error: 
-                           flag C 2
-l. ...  }
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-> flag C height=2.
-============================================================



More information about the latex3-commits mailing list