From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63117 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Stop with an error signal Date: Sun, 31 Oct 2010 09:46:26 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288514806 28686 80.91.229.12 (31 Oct 2010 08:46:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 08:46:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 31 09:46:42 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PCTYn-00057J-Vb for gctc-ntg-context-518@m.gmane.org; Sun, 31 Oct 2010 09:46:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C561ECA7F9; Sun, 31 Oct 2010 09:46:40 +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 9-0ig4w8RKGt; Sun, 31 Oct 2010 09:46:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C2EACA7F4; Sun, 31 Oct 2010 09:46:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 80FB0CA7F4 for ; Sun, 31 Oct 2010 09:46:35 +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 d8EArLPgGm8h for ; Sun, 31 Oct 2010 09:46:33 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id E797ACA7F3 for ; Sun, 31 Oct 2010 09:46:32 +0100 (CET) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9V8kUGG029241 for ; Sun, 31 Oct 2010 09:46:31 +0100 Original-Received: by bwz16 with SMTP id 16so3952064bwz.14 for ; Sun, 31 Oct 2010 01:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=Y7itTlB/SxyCwmOKktYRbWT8NYv7/MNlZ45Ik0usc6g=; b=THzv60xxsvrUBn6gXmul5wSvYOVGExmK9WRZWu31UewTJzM3ckz/rfOiLEwqrh9tKn /uRhwnWG3qNBD849D25sDDsnP2oDPiwr8L90x+BkAqDcTC12IUyZJzV08x7rAhLGuNLP wXi1NmsjetmoSH0YPfhMUa+mdF9N1EIzWFPZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=d2I0k0wqniug/UJJ2THYpXvEV9llQ2hQFZVhG/HgraexYzXEbGqfX2b/im1tEDq2EU nw+U0DyTxecx7VBgD17HvUt6t2JyC/rsUNNPyCG9h281kXbjzVM24r1LawaJx2ul6f+w ejLWYH4AIpfHQSmvizxSWfJq6KQ/a8YeFlJ+c= Original-Received: by 10.204.113.197 with SMTP id b5mr10753414bkq.151.1288514790272; Sun, 31 Oct 2010 01:46:30 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B2957EF.dip.t-dialin.net [91.41.87.239]) by mx.google.com with ESMTPS id y19sm2422467bkw.18.2010.10.31.01.46.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 31 Oct 2010 01:46:29 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1081) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; 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: 08DpkKu6U - 3a000e94eb7d - 20101031 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:63117 Archived-At: Am 31.10.2010 um 01:27 schrieb Aditya Mahajan: > Hi, > > I want to write a macro that checks for some settings and if the settings are wrong stop the current compilation and terminate with an error message. Right now I have > > \def\ERROR > {\writeline > \showmessage\??externalfilter??{forbidden}\getexternalfilterdirectory > \batchmode > \normalend} > > This prints the error message on the terminal and exits. However the exit status (the value of $?) is 0, if the tui file has changed the document is compiled a second time anyways. > > How can I force context (the macro package) to exit with a status of 1 so that context (the program) does not attempt a second compilation? \starttext \scrollmode\errmessage{...} \stoptext 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________