summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 17:55:08 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 17:55:08 +0200
commit98175799b3823cdcb146adbb5310b94201317e3e (patch)
tree12bef30889b3d49c353dfcdd5c50fe1f41459060
parentc926a98056c77dfdb31b22575f85c549d7b3bb86 (diff)
downloadluatexbase-98175799b3823cdcb146adbb5310b94201317e3e.tar.gz
\unsetluatexattribute in pure TeX
-rw-r--r--luatexbase-attr.dtx9
1 files changed, 4 insertions, 5 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 78602d3..e58a965 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -320,14 +320,13 @@ See source file '\inFileName' for details.
\fi}
% \end{macrocode}
%
-% Helper macro |\unsetluatexattribute|: wrapper around the Lua function.
+% Helper macro |\unsetluatexattribute|.
%
% \begin{macrocode}
+\newcount\lltxb@attr@unsetvalue
+\lltxb@attr@unsetvalue=\ifnum\luatexversion<37 -1\else -2147483647\fi\relax
\def\unsetluatexattribute#1{%
- \begingroup\escapechar\m@ne \edef\x{\endgroup
- \noexpand\luatexbase@directlua{%
- luatexbase.unset_attribute("\luatexluaescapestring{\string#1}")}%
- }\x}
+ #1\lltxb@attr@unsetvalue}
% \end{macrocode}
%
% And now the trivial helper macro.