summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-05-10 12:27:19 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-05-10 12:27:19 +0200
commit9e9ba75999636306a37b626dda227b100ea41194 (patch)
tree476a138bef67a8a3ce0cd0d7343b661d431b55e3
parentdd3b52c8fe08c94dde400ced4ab875e7120a126d (diff)
downloadluatexbase-9e9ba75999636306a37b626dda227b100ea41194.tar.gz
The order in lua_suffixes was correct.
Go back to what it was before Élie's fix of the loader.
-rw-r--r--luatexbase-loader.dtx11
1 files changed, 8 insertions, 3 deletions
diff --git a/luatexbase-loader.dtx b/luatexbase-loader.dtx
index cfbe600..8ce3deb 100644
--- a/luatexbase-loader.dtx
+++ b/luatexbase-loader.dtx
@@ -297,11 +297,16 @@ module('luatexbase', package.seeall)
%
% Emulate (approximatively) kpse's lua format search.
%
+% |lua_search_suffixes| is taken verbatim from Kpathsea's source
+% (\file{tex-file.c}, constant |LUA_SUFFIXES|),\footnote{Unchanged since
+% 2007-07-06, last checked 2010-05-10.} except for the addition of the
+% empty string at the beginning (since this is what kpse does: first try
+% without adding a suffix).
+%
% \begin{macrocode}
local lua_search_suffixes = {
- ".luc", ".lua", "", ".luctex", ".texluc",
- ".luatex", ".texlua",
-}
+ "", ".luc", ".luctex", ".texluc", ".lua", ".luatex", ".texlua",
+ }
local lua_valid_suffixes = {
luc = true,
lua = true,