summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-int.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mlib-int.lua')
-rw-r--r--tex/context/base/mlib-int.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/tex/context/base/mlib-int.lua b/tex/context/base/mlib-int.lua
index 43bf14d38..6d219fe04 100644
--- a/tex/context/base/mlib-int.lua
+++ b/tex/context/base/mlib-int.lua
@@ -101,9 +101,13 @@ end
-- locals
-mp.OnRightPage = function() mpprint(structures.pages.on_right()) end -- needs checking
-mp.OnOddPage = function() mpprint(structures.pages.is_odd ()) end -- needs checking
-mp.InPageBody = function() mpprint(structures.pages.in_body ()) end -- needs checking
+local on_right = structures.pages.on_right
+local is_odd = structures.pages.is_odd
+local in_body = structures.pages.in_body
+
+mp.OnRightPage = function() mpprint(on_right()) end -- needs checking
+mp.OnOddPage = function() mpprint(is_odd ()) end -- needs checking
+mp.InPageBody = function() mpprint(in_body ()) end -- needs checking
-- mp.CurrentLayout : \currentlayout