summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luakeys/luakeys.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/generic/luakeys/luakeys.tex')
-rw-r--r--macros/luatex/generic/luakeys/luakeys.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/macros/luatex/generic/luakeys/luakeys.tex b/macros/luatex/generic/luakeys/luakeys.tex
index c3c69a0ba3..f993e7c83f 100644
--- a/macros/luatex/generic/luakeys/luakeys.tex
+++ b/macros/luatex/generic/luakeys/luakeys.tex
@@ -1,5 +1,5 @@
%% luakeys.tex
-%% Copyright 2021-2022 Josef Friedrich
+%% Copyright 2021-2023 Josef Friedrich
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -16,4 +16,9 @@
% This work consists of the files luakeys.lua, luakeys.sty, luakeys.tex
% luakeys-debug.sty and luakeys-debug.tex.
-\directlua{luakeys = require('luakeys')}
+\directlua{
+ if luakeys == nil then
+ luakeys = require('luakeys')()
+ luakeys.depublish_functions(luakeys)
+ end
+}