On 8/19/2014 9:20 PM, Wolfgang Schuster wrote:

Am 19.08.2014 um 21:02 schrieb Hans Hagen <pra...@wxs.nl
<mailto:pra...@wxs.nl>>:

I see no message that the module is loaded which is weird. But your
format is from may, so are you sure you use the latest versions of all?

It’s a bug in the commands.usemodules function in file-mod.lua which
sets a wrong status value
when you try to load a notexsitend file. Below is a minimal example
where you get the right message
when you uncomment the \enabledirectives line.

%\enabledirectives[modules.permitunprefixed]

\usemodule[funnyname]

\starttext
\stoptext

ok, so we should have:

   if not status or status == 0 then

Won’t a change like this make more sense?

Files without a prefix are only loaded when you enable the required
directive.

function commands.usemodules(prefix,askedname,truename)
             [...]
             if status then
                 -- ok, don't change
             elseif find(truename,"%-") and usemodule(truename) then
                 -- assume a user namespace
                 report_modules("using user prefixed file %a",truename)
                 status = 1
-           elseif not permit_unprefixed then
-               -- forget about it
-           elseif usemodule(truename) then
+           elseif permit_unprefixed and usemodule(truename) then
                 report_modules("using unprefixed file %a",truename)
                 status = 1
             else
                 status = 0
             end
             [...]
end

sure, i'd added a "status = 0" there but collapsing the else's makes more sense indeed

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to