From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87719 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: reading modules broken? Date: Sat, 07 Jun 2014 19:08:46 +0200 Message-ID: <5393471E.4020802@wxs.nl> References: <539229FD.8040405@wxs.nl> <659FBBDF-3289-4997-B6EB-9D274C21B7DF@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1402160952 7568 80.91.229.3 (7 Jun 2014 17:09:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Jun 2014 17:09:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 07 19:09:08 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WtK78-0006Px-PY for gctc-ntg-context-518@m.gmane.org; Sat, 07 Jun 2014 19:09:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4BFF310261 for ; Sat, 7 Jun 2014 19:09:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6HRGsHPYesy1 for ; Sat, 7 Jun 2014 19:09:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ED625101FA for ; Sat, 7 Jun 2014 19:09:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CD9E101EE for ; Sat, 7 Jun 2014 19:08:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UEgizF6Iup-D for ; Sat, 7 Jun 2014 19:08:56 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id E7D1A101E2 for ; Sat, 7 Jun 2014 19:08:50 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s57H8obP006604 for ; Sat, 7 Jun 2014 19:08:50 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.5a2) with ESMTP id 5560-1713362 for ; Sat, 07 Jun 2014 19:08:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <659FBBDF-3289-4997-B6EB-9D274C21B7DF@gmail.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QMbt8OCs - 4e000ca86b93 - 20140607 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87719 Archived-At: 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 ja= nuary 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=92s the meaning of the new =93v=94 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 =3D 1 elseif not permit_unprefixed then -- forget about it elseif usemodule(truename) then report_modules("using unprefixed file %a",truename) status =3D 1 else status =3D 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 ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________