From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89277 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: \preventmode does not work Date: Wed, 19 Nov 2014 11:48:15 -0500 Message-ID: <546CC9CF.7060406@rik.users.panix.com> References: <540210C4.4050809@panix.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0401663372==" X-Trace: ger.gmane.org 1416415758 25722 80.91.229.3 (19 Nov 2014 16:49:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 16:49:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 19 17:49:13 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 1Xr8RJ-0005UM-7K for gctc-ntg-context-518@m.gmane.org; Wed, 19 Nov 2014 17:49:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8AE2910226 for ; Wed, 19 Nov 2014 17:49:08 +0100 (CET) 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 xNMXdpltcnkA for ; Wed, 19 Nov 2014 17:49:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6D90110238 for ; Wed, 19 Nov 2014 17:48:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 17A23101FC for ; Wed, 19 Nov 2014 17:48:24 +0100 (CET) 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 owsLUnT16ViY for ; Wed, 19 Nov 2014 17:48:23 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 544C4101FB for ; Wed, 19 Nov 2014 17:48:23 +0100 (CET) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sAJGm41X014516 for ; Wed, 19 Nov 2014 17:48:07 +0100 Original-Received: from [192.168.201.10] (cpe-67-240-55-150.nycap.res.rr.com [67.240.55.150]) by mailbackend.panix.com (Postfix) with ESMTP id DD58013264 for ; Wed, 19 Nov 2014 11:48:17 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <540210C4.4050809@panix.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07NhsM4Of - 32fa3956a99c - 20141119 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:89277 Archived-At: This is a multi-part message in MIME format. --===============0401663372== Content-Type: multipart/alternative; boundary="------------090604040700060706030508" This is a multi-part message in MIME format. --------------090604040700060706030508 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit (This is a bump, with an improved example, of my earlier note on the subject.) In MKIV, \preventmode does not work. It appears to do the opposite of what is intended, and enable the specified mode. It also does not prevent the explicit enablement of a mode (as can be seen by uncommenting the commented line in the MWE). I have not tested it with MKII , where it might work. (Will ConTeXt online ever be restored?) This goes back to TL14 and likely earlier. Do I misunderstand what \preventmode should do, or have I misused it? And why are there {curlies} instead of [squares] around the mode name in \doifmode and friends? MWE, run context MWE.tex: \starttext \preventmode[X] %\enablemode[X] \doifmode{X}{!} \stoptext -- Rik Kabel --------------090604040700060706030508 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit (This is a bump, with an improved example, of my earlier note on the subject.)

In MKIV, \preventmode does not work. It appears to do the opposite of what is intended, and enable the specified mode. It also does not prevent the explicit enablement of a mode (as can be seen by uncommenting the commented line in the MWE).

I have not tested it with MKII , where it might work. (Will ConTeXt online ever be restored?)

This goes back to TL14 and likely earlier.

Do I misunderstand what \preventmode should do, or have I misused it?

And why are there {curlies} instead of [squares] around the mode name in \doifmode and friends?

MWE, run context MWE.tex:
\starttext
\preventmode[X]
%\enablemode[X]
\doifmode{X}{!}
\stoptext
--
Rik Kabel
--------------090604040700060706030508-- --===============0401663372== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0401663372==--