diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-11-04 23:11:37 +0100 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-11-11 15:49:40 +0100 |
commit | a206bf7f00e669c5b0530766f7666dd4addbec6b (patch) | |
tree | 347d94f1c382801dda3f5d4b1206e3784b0d1de2 | |
parent | 0d1b9ec3845cd63eb16c5bb58e37d563973803df (diff) | |
download | luatexbase-a206bf7f00e669c5b0530766f7666dd4addbec6b.tar.gz |
Don't use tex.error() after all.
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | luatexbase-modutils.dtx | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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. |