Skip to content

Commit

Permalink
Fix inconsistent local/global assignment (#1574) (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi authored Dec 3, 2024
1 parent 051cfdb commit 256cf13
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
not part of the distribution.
================================================================================

2024-12-03 Yukai Chou <[email protected]>
* ltmarks.dtx (subsection{Allocating new mark classes}):
Fix inconsistent local/global assignment (gh/1574)

2024-11-27 Frank Mittelbach <[email protected]>

* ltfssdcl.dtx (section{Interface Commands}):
Expand Down
13 changes: 7 additions & 6 deletions base/ltmarks.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
%<*driver>
% \fi
\ProvidesFile{ltmarks.dtx}
[2024/11/14 v1.1a LaTeX Kernel (Marks)]
[2024/12/03 v1.1b LaTeX Kernel (Marks)]
% \iffalse
%
\documentclass{l3doc}
Expand Down Expand Up @@ -979,7 +979,8 @@
%
%
% \begin{macro}{\@@_init_region:nn,\c_@@_empty_tl}
%
% \changes{v1.1b}{2024/12/03}{Fix inconsistent local/global assignment (gh/1574)}
%
% For each class (\texttt{\#2}) and region (\texttt{\#1}), we need
% three token lists: one for top, first, and last. The default value to be
% returned is \enquote{empty}.
Expand All @@ -988,12 +989,12 @@
\tl_new:c { g_@@_#1_top_ #2 _tl }
\tl_new:c { g_@@_#1_first_ #2 _tl }
\tl_new:c { g_@@_#1_last_ #2 _tl }
\tl_set_eq:cN { g_@@_#1_top_ #2 _tl } \c_@@_empty_tl
\tl_set_eq:cN { g_@@_#1_first_ #2 _tl } \c_@@_empty_tl
\tl_set_eq:cN { g_@@_#1_last_ #2 _tl } \c_@@_empty_tl
\tl_gset_eq:cN { g_@@_#1_top_ #2 _tl } \c_@@_empty_tl
\tl_gset_eq:cN { g_@@_#1_first_ #2 _tl } \c_@@_empty_tl
\tl_gset_eq:cN { g_@@_#1_last_ #2 _tl } \c_@@_empty_tl
}
% \end{macrocode}
%
%
% All marks will have an identification in the form of a
% number\footnote{There are a few cases where special
% identification strings are used, e.g., \texttt{2.09-compat}.} that is
Expand Down
3 changes: 3 additions & 0 deletions base/testfiles-ltmarks/xmarks-001.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
\pagestyle{headings}

\input{regression-test}
\ExplSyntaxOn
\debug_on:n { check-declarations, deprecation }
\ExplSyntaxOff

\DebugMarksOn

Expand Down

0 comments on commit 256cf13

Please sign in to comment.