summaryrefslogtreecommitdiff
path: root/luatexbase-mcb.dtx
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-11-06 05:21:52 +0100
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-11-11 15:52:25 +0100
commit2c2bb26942dd6cf8190aa42c7afecc10fe5f3051 (patch)
treeb420c7bc454ae662b6f9ce601e5cb992f8cad6d7 /luatexbase-mcb.dtx
parent79b6ef89336fe7dcbb41250636f28ab4ebf03584 (diff)
downloadluatexbase-2c2bb26942dd6cf8190aa42c7afecc10fe5f3051.tar.gz
fix call_callback()
bug introduced in c1280576f13b5f4f29cb57053340a84d6bda69f0
Diffstat (limited to 'luatexbase-mcb.dtx')
-rw-r--r--luatexbase-mcb.dtx8
1 files changed, 4 insertions, 4 deletions
diff --git a/luatexbase-mcb.dtx b/luatexbase-mcb.dtx
index e170a5b..a9b3771 100644
--- a/luatexbase-mcb.dtx
+++ b/luatexbase-mcb.dtx
@@ -856,7 +856,7 @@ function call_callback(name, ...)
if not l then
f = lua_callbacks_defaults[name]
else
- f = handlers[callbacktypes[name]]
+ f = handlers[callbacktypes[name]](name)
if not f then
err("unknown callback type")
return
@@ -922,12 +922,12 @@ luatexbase.create_callback("fooback", "data", data_one)
msg("* call it")
luatexbase.call_callback("fooback", "default")
msg("* add two functions")
-luatexbase.add_to_callback("fooback", data_two, " function two", 2)
-luatexbase.add_to_callback("fooback", data_three, " function three", 1)
+luatexbase.add_to_callback("fooback", data_two, "function two", 2)
+luatexbase.add_to_callback("fooback", data_three, "function three", 1)
msg("* call")
luatexbase.call_callback("fooback", "all")
msg("* rm one function")
-luatexbase.remove_from_callback("fooback", " function three")
+luatexbase.remove_from_callback("fooback", "function three")
msg("* call")
luatexbase.call_callback("fooback", "all but three")
msg("* reset")