summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c1
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lpdflib.c13
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luanode.w3
3 files changed, 14 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c b/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c
index 6bdaca016fd..812ad437b1a 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c
@@ -72,6 +72,7 @@ static const char *const callbacknames[] = {
"process_rule",
"insert_local_par",
"contribute_filter",
+ "call_edit",
NULL
};
diff --git a/Build/source/texk/web2c/luatexdir/lua/lpdflib.c b/Build/source/texk/web2c/luatexdir/lua/lpdflib.c
index 3b9846c0ed2..82508a2a9e2 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lpdflib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lpdflib.c
@@ -43,6 +43,8 @@ static int luapdfprint(lua_State * L)
literal_mode = direct_always;
else if (lua_key_eq(modestr_s,page))
literal_mode = direct_page;
+ else if (lua_key_eq(modestr_s,raw))
+ literal_mode = direct_raw;
else {
luaL_error(L, "invalid first argument for print literal mode");
}
@@ -64,6 +66,9 @@ static int luapdfprint(lua_State * L)
case (direct_always):
pdf_end_string_nl(static_pdf);
break;
+ case (direct_raw):
+ pdf_end_string_nl(static_pdf);
+ break;
default:
assert(0);
}
@@ -1069,11 +1074,13 @@ static int newpdfcolorstack(lua_State * L)
if (lua_type(L,2) == LUA_TSTRING) {
l = lua_tostring(L, 2);
if (lua_key_eq(l,origin)) {
- literal_mode = 0;
+ literal_mode = set_origin;
} else if (lua_key_eq(l,page)) {
- literal_mode = 1; /* direct_page */
+ literal_mode = direct_page;
} else if (lua_key_eq(l,direct)) {
- literal_mode = 2; /* direct_always */
+ literal_mode = direct_always;
+ } else if (lua_key_eq(l,raw)) {
+ literal_mode = direct_raw;
} else {
luaL_error(L, "invalid literal mode in pdf.newcolorstack()");
}
diff --git a/Build/source/texk/web2c/luatexdir/lua/luanode.w b/Build/source/texk/web2c/luatexdir/lua/luanode.w
index f901eddbfa9..af15748bacd 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luanode.w
+++ b/Build/source/texk/web2c/luatexdir/lua/luanode.w
@@ -420,6 +420,9 @@ void show_pdf_literal(pointer p)
case direct_always:
tprint(" direct");
break;
+ case direct_raw:
+ tprint(" raw");
+ break;
default:
confusion("literal2");
break;