[latex3-commits] [latex3/latex2e] gh1438: Define \begin as engine-protected (e642f0b9)

github at latex-project.org github at latex-project.org
Sun Oct 13 10:32:26 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1438
Link       : https://github.com/latex3/latex2e/commit/e642f0b9b97a407b14557c9e4046519042af930f

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

commit e642f0b9b97a407b14557c9e4046519042af930f
Author: Joseph Wright <joseph at texdev.net>
Date:   Sun Oct 13 09:24:24 2024 +0100

    Define \begin as engine-protected


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

e642f0b9b97a407b14557c9e4046519042af930f
 base/changes.txt                                             |  4 ++++
 base/ltmiscen.dtx                                            |  5 +++--
 base/testfiles-lthooks/lthooks-rollback-args.tlg             |  1 -
 base/testfiles/github-0354.tlg                               |  2 +-
 base/testfiles/github-0479-often.luatex.tlg                  |  1 -
 base/testfiles/github-0479-often.tlg                         |  1 -
 base/testfiles/github-0479-often.xetex.tlg                   |  1 -
 base/testfiles/github-0548.luatex.tlg                        |  4 ++--
 base/testfiles/github-0548.tlg                               |  4 ++--
 .../tlb-latexrelease-rollback-2020-10-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2021-06-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2021-11-15.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2022-06-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2022-11-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2023-06-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2023-11-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg |  1 -
 .../tlb-latexrelease-rollback-2024-06-01.luatex.tlg          |  1 -
 base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg      |  1 -
 .../testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg |  1 -
 base/testfiles/tlb-rollback-005.luatex.tlg                   |  1 -
 base/testfiles/tlb-rollback-005.tlg                          |  1 -
 base/testfiles/tlb-rollback-005.xetex.tlg                    |  1 -
 required/latex-lab/changes.txt                               |  3 +++
 required/latex-lab/latex-lab-math.dtx                        | 12 +++---------
 38 files changed, 18 insertions(+), 47 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index ed2c5848..4c4a08c7 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
 not part of the distribution.
 ================================================================================
 
+2024-10-12  Joseph Wright  <Joseph.Wright at latex-project.org>
+	* ltmiscen.dtx
+	Define \being as an engine-protected macro
+
 2024-10-07  Joseph Wright  <Joseph.Wright at latex-project.org>
 	* lttemplates.dtx
 	Correct passing of token list content using \KeyValue
diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx
index 423f5162..70c374f7 100644
--- a/base/ltmiscen.dtx
+++ b/base/ltmiscen.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltmiscen.dtx}
-             [2024/07/10 v1.2e LaTeX Kernel (Misc. Environments)]
+             [2024/10/12 v1.2f LaTeX Kernel (Misc. Environments)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltmiscen.dtx}
@@ -748,12 +748,13 @@
 % \changes{v1.1p}{2019/08/27}{Make command robust}
 % \changes{v1.2d}{2024/06/23}{Separate \cs{begin} and \cs{end} definitions
 %     for individual rollback}
+% \changes{v1.2f}{2024/10/12}{Make \cs{begin} engine-protected}
 %    \begin{macrocode}
 %</2ekernel>
 %<*2ekernel|latexrelease>
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>                 {\begin}{Use hook system}%
-\DeclareRobustCommand*\begin[1]{%
+\protected\def\begin#1{%
   \UseHook{env/#1/before}%
   \@ifundefined{#1}%
     {\def\reserved at a{\@latex at error{Environment #1 undefined}\@eha}}%
diff --git a/base/testfiles-lthooks/lthooks-rollback-args.tlg b/base/testfiles-lthooks/lthooks-rollback-args.tlg
index 20167104..a33252ab 100644
--- a/base/testfiles-lthooks/lthooks-rollback-args.tlg
+++ b/base/testfiles-lthooks/lthooks-rollback-args.tlg
@@ -517,7 +517,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/github-0354.tlg b/base/testfiles/github-0354.tlg
index ff03275c..25166b9a 100644
--- a/base/testfiles/github-0354.tlg
+++ b/base/testfiles/github-0354.tlg
@@ -2,7 +2,7 @@ This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
 Runaway argument?
 {quote) qqq \end {quote} 
-! Paragraph ended before \begin  was complete.
+! Paragraph ended before \begin was complete.
 <to be read again> 
                    \par 
 l. ...
diff --git a/base/testfiles/github-0479-often.luatex.tlg b/base/testfiles/github-0479-often.luatex.tlg
index d0a203f9..a340a3fc 100644
--- a/base/testfiles/github-0479-often.luatex.tlg
+++ b/base/testfiles/github-0479-often.luatex.tlg
@@ -527,7 +527,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/github-0479-often.tlg b/base/testfiles/github-0479-often.tlg
index ad069458..a9da7d35 100644
--- a/base/testfiles/github-0479-often.tlg
+++ b/base/testfiles/github-0479-often.tlg
@@ -517,7 +517,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/github-0479-often.xetex.tlg b/base/testfiles/github-0479-often.xetex.tlg
index 24225fa6..6850917d 100644
--- a/base/testfiles/github-0479-often.xetex.tlg
+++ b/base/testfiles/github-0479-often.xetex.tlg
@@ -517,7 +517,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/github-0548.luatex.tlg b/base/testfiles/github-0548.luatex.tlg
index 417badbc..349bdeb6 100644
--- a/base/testfiles/github-0548.luatex.tlg
+++ b/base/testfiles/github-0548.luatex.tlg
@@ -1,14 +1,14 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
 > \@tempa=macro:
-->\protect \begin  {tabular}{c}a\\b\protect \end  {tabular}.
+->\begin {tabular}{c}a\\b\protect \end  {tabular}.
 l. ......in{tabular}{c}a\\b\end{tabular}}\show\@tempa
 LaTeX Font Info:    External font `cmex10' loaded for size
 (Font)              <7> on input line ....
 LaTeX Font Info:    External font `cmex10' loaded for size
 (Font)              <5> on input line ....
 > \@tempa=macro:
-->\protect \begin  {tabular}{c}a\\b\protect \end  {tabular}.
+->\begin {tabular}{c}a\\b\protect \end  {tabular}.
 l. ......in{tabular}{c}a\\b\end{tabular}}\show\@tempa
 > \@tempa=macro:
 ->\protect \shortstack  {c}{a\\b}.
diff --git a/base/testfiles/github-0548.tlg b/base/testfiles/github-0548.tlg
index 16fcfc40..063b3a92 100644
--- a/base/testfiles/github-0548.tlg
+++ b/base/testfiles/github-0548.tlg
@@ -1,14 +1,14 @@
 This is a generated file for the LaTeX2e validation system.
 Don't change this file in any respect.
 > \@tempa=macro:
-->\protect \begin  {tabular}{c}a\\b\protect \end  {tabular}.
+->\begin {tabular}{c}a\\b\protect \end  {tabular}.
 l. ......{tabular}{c}a\\b\end{tabular}}\show\@tempa
 LaTeX Font Info:    External font `cmex10' loaded for size
 (Font)              <7> on input line ....
 LaTeX Font Info:    External font `cmex10' loaded for size
 (Font)              <5> on input line ....
 > \@tempa=macro:
-->\protect \begin  {tabular}{c}a\\b\protect \end  {tabular}.
+->\begin {tabular}{c}a\\b\protect \end  {tabular}.
 l. ......{tabular}{c}a\\b\end{tabular}}\show\@tempa
 > \@tempa=macro:
 ->\protect \shortstack  {c}{a\\b}.
diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
index fbc3e02f..166c72c6 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg
@@ -527,7 +527,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg
index 503ee8ea..3692eafa 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg
@@ -517,7 +517,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg
index d5c41942..9a1225f9 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg
@@ -517,7 +517,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg
index 88a167bb..8e7481e7 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg
index 2adc2c35..1e2af874 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg
index e7e8e860..ef79f042 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg
index 4b1ded33..d38d71ae 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg
index eeced3b0..a36eb7c3 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg
index 4f921f8f..166376e5 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg
index e44f7889..20dc90e6 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg
index 30c3f9a6..c0f264f2 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg
index 20997d53..d93a454b 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg
index a429a2e2..8445e870 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg
index 498cf56c..1926fb0b 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg
index 9de0a054..8cb4e2c3 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg
index df7c4b72..82b54df9 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg
index 9c3c4494..1b6c5752 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg
index 7889dc64..4f8dc24b 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg
index 4e645b13..1c5d2111 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg
index bb4257e3..6c359296 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg
index fe337bbf..0c572a72 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg
index 15aea26c..e93aa059 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg
@@ -528,7 +528,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg
index 859ade6d..3daa95a6 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg
index 1328a81a..4e7276c7 100644
--- a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg
+++ b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg
@@ -517,7 +517,6 @@ Already applied: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-rollback-005.luatex.tlg b/base/testfiles/tlb-rollback-005.luatex.tlg
index 060c0465..7e53204d 100644
--- a/base/testfiles/tlb-rollback-005.luatex.tlg
+++ b/base/testfiles/tlb-rollback-005.luatex.tlg
@@ -531,7 +531,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-rollback-005.tlg b/base/testfiles/tlb-rollback-005.tlg
index 4f2caf35..1353af58 100644
--- a/base/testfiles/tlb-rollback-005.tlg
+++ b/base/testfiles/tlb-rollback-005.tlg
@@ -521,7 +521,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/base/testfiles/tlb-rollback-005.xetex.tlg b/base/testfiles/tlb-rollback-005.xetex.tlg
index f7a1b8e5..44370f88 100644
--- a/base/testfiles/tlb-rollback-005.xetex.tlg
+++ b/base/testfiles/tlb-rollback-005.xetex.tlg
@@ -521,7 +521,6 @@ Applying: [....-..-..] kernel before hook on input line ....
 Applying: [....-..-..] Mask line endings on input line ....
 Already applied: [....-..-..] Mask line endings on input line ....
 Applying: [....-..-..] Use hook system on input line ....
-LaTeX Info: Redefining \begin on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Already applied: [....-..-..] Making \begin /\end robust on input line ....
 Applying: [....-..-..] Making \begin /\end robust on input line ....
diff --git a/required/latex-lab/changes.txt b/required/latex-lab/changes.txt
index a7cbdfd8..802e6ada 100644
--- a/required/latex-lab/changes.txt
+++ b/required/latex-lab/changes.txt
@@ -1,3 +1,6 @@
+2024-10-04  Joseph Wright <Joseph.Wright at latex-project.org>
+	* latex-lab-math.dtx: Sync with protected-begin status
+
 2024-10-11  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* latex-lab-block.dtx (subsubsection{verse environment}):
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 429e2277..e8710b60 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -19,8 +19,8 @@
 % for those people who are interested or want to report an issue.
 %
 %
-\def\ltlabmathdate{2024-10-02}
-\def\ltlabmathversion{0.6g}
+\def\ltlabmathdate{2024-10-12}
+\def\ltlabmathversion{0.6h}
 %
 %<*driver>
 \documentclass{l3doc}
@@ -1856,17 +1856,13 @@
 %      \@@_grab_loop_$:              ,
 %      \@@_grab_loop_\\:             ,
 %      \@@_grab_loop_\begin:         ,
-%      \@@_grab_loop_\begin :        ,
 %      \@@_grab_loop_\end:           ,
 %      \@@_grab_loop_\ignorespaces:  ,
 %      \@@_grab_loop_\unskip:        ,
 %      \@@_grab_loop_\textonly at unskip:
 %   }
 %   Filter out the special cases: for performance reasons, use a hash table
-%   approach rather than a loop (\emph{cf.}~\pkg{collcell}). The need to cover
-%   \verb*|begin | is that at the start of a cell, \TeX{} will expand \cs{begin}
-%   but the \LaTeX{} robust mechanism will mean this yields \verb*|begin |.
-%   If\cs{begin} were protected, that would not be needed.
+%   approach rather than a loop (\emph{cf.}~\pkg{collcell}).
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_grab_loop_token:N #1
   {
@@ -1895,8 +1891,6 @@
     \int_incr:N \l_@@_grab_env_int
     \@@_grab_loop_store:n { \begin }
   }
-\cs_new_eq:cc { @@_grab_loop_ \token_to_str:N \begin \c_space_tl : }
-  { @@_grab_loop_ \token_to_str:N \begin : }
 \cs_new_protected:cpn { @@_grab_loop_ \token_to_str:N \end : }
   {
     \int_compare:nNnTF \l_@@_grab_env_int = 0





More information about the latex3-commits mailing list.