From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48257 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: die if a module is missing Date: Thu, 12 Mar 2009 16:38:42 +0100 Message-ID: References: <87mybqesxv.fsf@cordelia.devereux.me.uk> <87iqmeepil.fsf@cordelia.devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236872500 20785 80.91.229.12 (12 Mar 2009 15:41:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 15:41:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 12 16:42:53 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Lhn2z-0000N1-Vf for gctc-ntg-context-518@m.gmane.org; Thu, 12 Mar 2009 16:42:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3DEBE1FB89; Thu, 12 Mar 2009 16:40:50 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13893-06-2; Thu, 12 Mar 2009 16:40:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BCFD51FB82; Thu, 12 Mar 2009 16:40:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA6081FB82 for ; Thu, 12 Mar 2009 16:40:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25772-01-3 for ; Thu, 12 Mar 2009 16:39:56 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id F2D551FB5B for ; Thu, 12 Mar 2009 16:39:45 +0100 (CET) Original-Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2CFdiAP024258 for ; Thu, 12 Mar 2009 16:39:44 +0100 Original-Received: by bwz9 with SMTP id 9so470909bwz.2 for ; Thu, 12 Mar 2009 08:39:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=gUsukKAxae/GsNmQL9zj/BMZbAcfQcgCBiETGhxbmcM=; b=aDUtRARUhwRqe7bPNqeFi1dqIABIU30gwYIYJae6IpZZqb5mt85rt3o2vwq6l5hmRe wtdFTaREnfXbknlqJuA1fkhtx2AqtKXgfW8UzbcV4lDKuzGg6glCjx9ckKPd4FkV5ret AfxHOCTcmzJTY8pl/wW3O2UTwdzXuMkUxSjsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=wELBfMxWZ+kBneyUvqOUWiF/6R3Atnl140xr5F2P2YzTaYt5AlqA2S3h/JNDsGzOm4 dCap+xupKhRcbKUtyRCVm4LUGBuLWjgqTkz3I5uc4e+YlWyQWgRNdyer9eyyjcR8UZ45 pxEXyxbs0MuV1kNx9nEw4XmkLbda74mW9DmLk= Original-Received: by 10.223.111.134 with SMTP id s6mr78595fap.60.1236872383632; Thu, 12 Mar 2009 08:39:43 -0700 (PDT) Original-Received: from ?10.40.98.21? ([82.113.121.150]) by mx.google.com with ESMTPS id 28sm1313758fkx.17.2009.03.12.08.39.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 12 Mar 2009 08:39:42 -0700 (PDT) In-Reply-To: <87iqmeepil.fsf@cordelia.devereux.me.uk> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.165; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 192673837 - 92c88805569c X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48257 Archived-At: Am 12.03.2009 um 16:20 schrieb John Devereux: > Wolfgang Schuster writes: > >> Am 12.03.2009 um 15:06 schrieb John Devereux: >> >>> Michael Bynum writes: >>> >>>> This has burned me too. It would be nice if the errors were more >>>> prominent, perhaps repeated at the end of the output? >>>> Mike >>> >>> While we are on the subject, is it possible to make it "die" when >>> incorrect (non-existent) options are passed to a context command? Is >>> there any way at all of knowing if the option did anything (even by >>> examining the log?) >> >> No, this is not possible and even such a feature would increase >> the compile time a lot, e.g. I used list with valid names in a >> earlier >> version of my letter module and it was 30% slower than the current >> version and now imagine what happens if you check each key in a >> assignment list. > > OK. It seems strange (coming from a programming background). > > If it is only the compile time, then a command line switch might be an > option. (But it sounds like it is inherently hard to do, now). Yes, something like \traceassignments is possible but you need table with all valid values (makes only sense in MkIV) and even then a lot of thing had to be checked. Take as example \localframed (the internal command for \framed etc.), you could store all of it valid keys in a table and check against them but what should happen with high level commands like \externalfigure which use \localframed but use itself only a subset of the keys, do you want to generate a error message for the ignored keys (which are valid \localframed keys) or make a exception. Another thing are values for the keys, \setuplayerframed is a combination of \setlayer and \framed and you can set the same values for both with \setlayerframed[...][offset=...] or different values for each part with \setlayerframed[...][offset=...][offset=...] but in the first case not all values are accepted, e.g. 'offset=none' causes a error message for \setlayer but is a legal setting for \framed. Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________