From a206bf7f00e669c5b0530766f7666dd4addbec6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 4 Nov 2010 23:11:37 +0100 Subject: Don't use tex.error() after all. --- TODO | 1 - luatexbase-modutils.dtx | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 55c4f05..a2b3e24 100644 --- a/TODO +++ b/TODO @@ -1,7 +1,6 @@ modutils -------- -- use tex.error for errors when available - review logic: should this module be mandatory? if not, what should happen with mixed require(), require_module(), declaration and no declaration? diff --git a/luatexbase-modutils.dtx b/luatexbase-modutils.dtx index a21d3cf..054d80d 100644 --- a/luatexbase-modutils.dtx +++ b/luatexbase-modutils.dtx @@ -428,7 +428,9 @@ end % Here are the reporting functions for the modules. For errors, Lua's % |error()| is used. For now, the error reports look less good than with % \tex's |\errmessage|, but hopefully it will be improved in future -% versions of \luatex. We could invoke |\errmessage| using |tex.sprint()|, +% versions of \luatex.\footnote{Actually, \luatex 0.61 and higher provides +% |tex.error| but it's less usefull, since only the current line in the +% TeX file is reported.} We could invoke |\errmessage| using |tex.sprint()|, % but it may cause problems on the \tex end,\footnote{Eg, it will not work % inside an \cs{edef}.} and moreover |error()| will still be used by Lua % for other errors, so it makes messages more consistent. -- cgit v1.2.3