Commit 765603a 1 parent fed358c commit 765603a Copy full SHA for 765603a
File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 17
17
% <*driver>
18
18
% \fi
19
19
\ProvidesFile {ltmarks.dtx}
20
- [2024/12/25 v1.1b LaTeX Kernel (Marks)]
20
+ [2025/01/10 v1.1c LaTeX Kernel (Marks)]
21
21
% \iffalse
22
22
%
23
23
\documentclass {l3doc }
1476
1476
{
1477
1477
% <*trace>
1478
1478
\@@ _debug:n { \iow _term:x { Marks:~ extract~ last~
1479
- mark~ for~ class~ '##1' ~ =~ \g _@@_tmp_tl } }
1479
+ % \end{macrocode}
1480
+ % The mark content in \cs{g_@@_tmp_tl} may contain aribtrary code
1481
+ % that may react badly if it is expanded in a write. So we better
1482
+ % avoid that expansion, otherwise debugging might generate spurious
1483
+ % errors when turned on.
1484
+ % \changes{v1.1c}{2025/01/10}{Do not expand mark content while debugging}
1485
+ % \begin{macrocode}
1486
+ mark~ for~ class~ '##1' ~ =~ \exp _not:o \g _@@_tmp_tl } }
1480
1487
% </trace>
1481
1488
\tl _gput_right:Ne \g _@@_last_marks_tl
1482
1489
{ \mark _insert:nn {##1} { \@@ _drop_id:o { \g _@@_tmp_tl } } }
1488
1495
% faster in case there is none.
1489
1496
% \begin{macrocode}
1490
1497
% <*trace>
1491
- \@@ _debug:n { \iow _term:x { Marks:~ extract~ first~
1492
- mark~ for~ class~ '##1' ~ =~
1493
- \tex _splitfirstmarks:D
1498
+ \@@ _debug:n { \iow _term:x {
1499
+ Marks:~ extract~ first~ mark~ for~ class~ '##1' ~ =~
1500
+ % \end{macrocode}
1501
+ % Again no expansion for the mark content.
1502
+ % \begin{macrocode}
1503
+ \exp _not:o {
1504
+ \tex _splitfirstmarks:D
1494
1505
\use :c { c_@@_class_##1_mark }
1506
+ }
1495
1507
} }
1496
1508
% </trace>
1497
1509
\tl _gput_right:Ne \g _@@_first_marks_tl
You can’t perform that action at this time.
0 commit comments