[latex3-commits] [latex3/latex3] main: Add \prg_gset_eq_conditional:NNn (fixes #1212) (3afdcbf32)

github at latex-project.org github at latex-project.org
Fri May 26 11:13:56 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/3afdcbf32d1695ed4a33c03ae8764c9e4ddbc63e

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

commit 3afdcbf32d1695ed4a33c03ae8764c9e4ddbc63e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri May 26 10:13:56 2023 +0100

    Add \prg_gset_eq_conditional:NNn (fixes #1212)


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

3afdcbf32d1695ed4a33c03ae8764c9e4ddbc63e
 l3kernel/CHANGELOG.md | 1 +
 l3kernel/l3basics.dtx | 9 ++++++++-
 l3kernel/l3prg.dtx    | 7 ++++++-
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 8ba9a25f5..5afe7081d 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -8,6 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
 ## [Unreleased]
 
 ### Added
+- `\prg_gset_eq_conditional:NNn` (issue \#1212)
 - `\iow_shell_open:Nn` (issue \#1122)
 
 ## Deprecated
diff --git a/l3kernel/l3basics.dtx b/l3kernel/l3basics.dtx
index f8479e2be..12f64bebc 100644
--- a/l3kernel/l3basics.dtx
+++ b/l3kernel/l3basics.dtx
@@ -2161,7 +2161,12 @@
 % \end{macro}
 % \end{macro}
 %
-% \begin{macro}{\prg_set_eq_conditional:NNn, \prg_new_eq_conditional:NNn}
+% \begin{macro}
+%   {
+%     \prg_set_eq_conditional:NNn ,
+%     \prg_gset_eq_conditional:NNn,
+%     \prg_new_eq_conditional:NNn
+%   }
 % \begin{macro}{\@@_set_eq_conditional:NNNn}
 %   The setting-equal functions.  Split both functions and feed
 %   \Arg{name_1} \Arg{signature_1} \meta{boolean_1}
@@ -2172,6 +2177,8 @@
 %    \begin{macrocode}
 \cs_set_protected:Npn \prg_set_eq_conditional:NNn
   { \@@_set_eq_conditional:NNNn \cs_set_eq:cc }
+\cs_set_protected:Npn \prg_gset_eq_conditional:NNn
+  { \@@_set_eq_conditional:NNNn \cs_gset_eq:cc }
 \cs_set_protected:Npn \prg_new_eq_conditional:NNn
   { \@@_set_eq_conditional:NNNn \cs_new_eq:cc }
 \cs_set_protected:Npn \@@_set_eq_conditional:NNNn #1#2#3#4
diff --git a/l3kernel/l3prg.dtx b/l3kernel/l3prg.dtx
index 7374a8d8b..916e9252e 100644
--- a/l3kernel/l3prg.dtx
+++ b/l3kernel/l3prg.dtx
@@ -171,7 +171,12 @@
 % state. There must be a return statement for each branch; failing to do
 % so will result in erroneous output if that branch is executed.
 %
-% \begin{function}{\prg_new_eq_conditional:NNn, \prg_set_eq_conditional:NNn}
+% \begin{function}[updated = 2023-05-26]
+%   {
+%     \prg_new_eq_conditional:NNn,
+%     \prg_set_eq_conditional:NNn,
+%     \prg_gset_eq_conditional:NNn
+%   }
 %   \begin{syntax}
 %     \cs{prg_new_eq_conditional:NNn} \cs[no-index]{\meta{name_1}:\meta{arg spec_1}} \cs[no-index]{\meta{name_2}:\meta{arg spec_2}} \Arg{conditions}
 %   \end{syntax}





More information about the latex3-commits mailing list.