[latex3-commits] [latex3/latex3] main: Add \g_tmp(a|b)_cctab (5ff8dd4d0)

github at latex-project.org github at latex-project.org
Fri May 26 12:45:55 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/5ff8dd4d0113202d42b8dcecde02b2b9f1222ee4

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

commit 5ff8dd4d0113202d42b8dcecde02b2b9f1222ee4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri May 26 11:45:55 2023 +0100

    Add \g_tmp(a|b)_cctab


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

5ff8dd4d0113202d42b8dcecde02b2b9f1222ee4
 l3kernel/CHANGELOG.md             |  2 +-
 l3kernel/l3cctab.dtx              | 13 ++++++++++++-
 l3kernel/testfiles/m3cctab001.lvt |  6 +++---
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 7a971e726..32088ae3d 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -8,7 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
 ## [Unreleased]
 
 ### Added
-- `\cctab_gsave_current:N` (issue \#1089)
+- `\cctab_gsave_current:N`, `\g_tmpa_cctab` and `\g_tmpb_cctab` (issue \#1089)
 - `\prg_gset_eq_conditional:NNn` (issue \#1212)
 - `\iow_shell_open:Nn` (issue \#1122)
 
diff --git a/l3kernel/l3cctab.dtx b/l3kernel/l3cctab.dtx
index 38612b460..d3a146578 100644
--- a/l3kernel/l3cctab.dtx
+++ b/l3kernel/l3cctab.dtx
@@ -152,7 +152,7 @@
 %   category code table.
 % \end{function}
 %
-% \section{Constant category code tables}
+% \section{Constant and scratch category code tables}
 %
 % \begin{variable}[updated = 2020-07-10]{\c_code_cctab}
 %   Category code table for the \pkg{expl3} code environment; this does
@@ -183,6 +183,10 @@
 %   $10$ (space).  Sets the \tn{endlinechar} value to $-1$.
 % \end{variable}
 %
+% \begin{variable}[added = 2023-05-26]{\g_tmpa_cctab, \g_tmpb_cctab}
+%   Scratch category code tables.
+% \end{variable}
+%
 % \end{documentation}
 %
 % \begin{implementation}
@@ -888,6 +892,13 @@
 %    \end{macrocode}
 % \end{variable}
 %
+% \begin{variable}{\g_tmpa_cctab, \g_tmpb_cctab}
+%    \begin{macrocode}
+\cctab_new:N \g_tmpa_cctab
+\cctab_new:N \g_tmpb_cctab
+%    \end{macrocode}
+% \end{variable}
+%
 % \subsection{Messages}
 %
 %    \begin{macrocode}
diff --git a/l3kernel/testfiles/m3cctab001.lvt b/l3kernel/testfiles/m3cctab001.lvt
index 8b72d1661..0357c8b0f 100644
--- a/l3kernel/testfiles/m3cctab001.lvt
+++ b/l3kernel/testfiles/m3cctab001.lvt
@@ -263,15 +263,15 @@
 \TEST { \cctab_gsave_current:N }
   {
     \OMIT
-    \cctab_new:N \g_test_cctab
+    \cctab_new:N \g_tmpa_cctab
     \TIMO
     \group_begin:
       \char_set_catcode_other:N \q
-      \cctab_gsave_current:N \g_test_cctab
+      \cctab_gsave_current:N \g_tmpa_cctab
     \group_end:
     \int_compare:nNnTF { \char_value_catcode:n { `q } } = { 11 }
       { \TRUE } { \ERROR }
-    \cctab_select:N \g_test_cctab
+    \cctab_select:N \g_tmpa_cctab
     \int_compare:nNnTF { \char_value_catcode:n { `q } } = { 12 }
       { \TRUE } { \ERROR }
   }





More information about the latex3-commits mailing list.