From 9e9ba75999636306a37b626dda227b100ea41194 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Mon, 10 May 2010 12:27:19 +0200
Subject: The order in lua_suffixes was correct.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Go back to what it was before Élie's fix of the loader.
---
 luatexbase-loader.dtx | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

(limited to 'luatexbase-loader.dtx')

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

