[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Reclassify [vh]pack_quality callbacks as exclusive (610482ab)
Marcel Fabian Krüger
tex at 2krueger.de
Wed Nov 17 07:41:17 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/610482abcae8e36c71a73bc313e0d95b3c50cc46
>---------------------------------------------------------------
commit 610482abcae8e36c71a73bc313e0d95b3c50cc46
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sun Nov 7 03:28:06 2021 +0100
Reclassify [vh]pack_quality callbacks as exclusive
>---------------------------------------------------------------
610482abcae8e36c71a73bc313e0d95b3c50cc46
base/changes.txt | 5 +++++
base/doc/ltnews35.tex | 8 ++++++++
base/ltluatex.dtx | 8 +++++---
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index d5d2b555..e4391479 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2021-11-17 Marcel Krüger <Marcel.Krueger at latex-project.org>
+
+ * ltluatex.dtx:
+ Classify [hv]pack_quality callbacks as exclusive
+
================================================================================
All changes above are only part of the development branch for the next release.
================================================================================
diff --git a/base/doc/ltnews35.tex b/base/doc/ltnews35.tex
index 731c5ee9..b701339a 100644
--- a/base/doc/ltnews35.tex
+++ b/base/doc/ltnews35.tex
@@ -147,6 +147,14 @@
\section{Code improvements}
+\subsection{Lua\TeX\ callback improvements}
+
+The Lua\TeX\ callbacks \texttt{hpack\_quality} and \texttt{vpack\_quality} are
+now \texttt{exclusive} and therefore only allow a single handler.
+The previous type \texttt{list} resulted in incorrect parameters when multiple
+handlers were set, therefore this only makes an existing restriction more
+explicit.
+
\subsection{???}
%
\githubissue{???}
diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index 258ac482..1f8598ff 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -28,7 +28,7 @@
\ProvidesFile{ltluatex.dtx}
%</driver>
%<*tex>
-[2021/10/15 v1.1v
+[2021/11/17 v1.1w
%</tex>
%<plain> LuaTeX support for plain TeX (core)
%<*tex>
@@ -1351,6 +1351,8 @@ local callbacktypes = callbacktypes or {
% \changes{v1.1k}{2019/10/02}{mlist\_to\_hlist is \texttt{exclusive}}
% \changes{v1.1l}{2020/02/02}{post\_linebreak\_filter is \texttt{reverselist}}
% \changes{v1.1p}{2020/08/01}{new\_graf is \texttt{exclusive}}
+% \changes{v1.1w}{2021/11/17}{hpack\_quality is \texttt{exclusive}}
+% \changes{v1.1w}{2021/11/17}{vpack\_quality is \texttt{exclusive}}
% \begin{macrocode}
contribute_filter = simple,
buildpage_filter = simple,
@@ -1361,8 +1363,8 @@ local callbacktypes = callbacktypes or {
post_linebreak_filter = reverselist,
hpack_filter = list,
vpack_filter = list,
- hpack_quality = list,
- vpack_quality = list,
+ hpack_quality = exclusive,
+ vpack_quality = exclusive,
pre_output_filter = list,
process_rule = exclusive,
hyphenate = simple,
More information about the latex3-commits
mailing list.