[latex3-commits] [git/LaTeX3-latex3-latex2e] callback_rules: Change rule interface as discussed (df7e4db3)

Marcel Fabian Krüger tex at 2krueger.de
Fri May 27 17:27:58 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : callback_rules
Link       : https://github.com/latex3/latex2e/commit/df7e4db3c6e88ad2f6afcb81d38dc92a2929f1d9

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

commit df7e4db3c6e88ad2f6afcb81d38dc92a2929f1d9
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri May 27 17:27:58 2022 +0200

    Change rule interface as discussed


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

df7e4db3c6e88ad2f6afcb81d38dc92a2929f1d9
 base/ltluatex.dtx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index 20b55fcc..38415458 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -1850,7 +1850,7 @@ luatexbase.add_to_callback = add_to_callback
 % \begin{macro}{declare_callback_rule}
 %   Add an ordering constraint between two callback implementations
 %    \begin{macrocode}
-local function declare_callback_rule(name, desc1, desc2, relation)
+local function declare_callback_rule(name, desc1, relation, desc2)
   if not callbacktypes[name] or
     not desc1 or not desc2 or
     desc1 == "" or desc2 == "" then
@@ -1860,7 +1860,7 @@ local function declare_callback_rule(name, desc1, desc2, relation)
         .. "declare_callback_rule(<callback>, <description_a>, <description_b>)"
     )
   end
-  if relation == 'before' or not relation then
+  if relation == 'before' then
     relation = nil
   elseif relation == 'after' then
     desc2, desc1 = desc1, desc2





More information about the latex3-commits mailing list.