On 6/7/2014 12:52 PM, Wolfgang Schuster wrote:
Am 06.06.2014 um 22:52 schrieb Hans Hagen
: On 6/6/2014 9:35 PM, Meer, H. van der wrote:
My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second. Minimal example follows.
Hans van der Meer
Module code in file module-test is: \writestatus{HVDM}{Module has been read} \endinput
Test code in file moduletest.tex is: \usemodule[module-test] \starttext module testing look into the log. \stoptext
modules have names like
m- x- s- p- u-
What’s the meaning of the new “v” prefix for modules?
It is actually an old one (that can go, i had some v files on my machine .. collected examples). In file-mod.lua we have commands.usemodules, and we can extend that to support the case where a user has provided some prefix (prefixing prevents clashes with files elsewhere in the tex tree) ... 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 report_modules("using unprefixed file %a",truename) status = 1 else status = 0 end ... Btw, in the case of hvdm, an option would have been: \enabledirectives[modules.permitunprefixed] I'm somewhat surprised that the issues show up now as that code is not that young. 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 -----------------------------------------------------------------