From 98175799b3823cdcb146adbb5310b94201317e3e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sat, 21 May 2011 17:55:08 +0200
Subject: \unsetluatexattribute in pure TeX

---
 luatexbase-attr.dtx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'luatexbase-attr.dtx')

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.
-- 
cgit v1.2.3

