From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63107 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 05:25:30 +0100 Message-ID: <1DE1D6A3-7A98-4981-96DF-C554172E9FF4@gmail.com> 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 1288499399 18481 80.91.229.12 (31 Oct 2010 04:29:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 31 Oct 2010 04:29:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 31 05:29:54 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 1PCPYC-0000X5-Gl for gctc-ntg-context-518@m.gmane.org; Sun, 31 Oct 2010 05:29:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 780D0CA7E7; Sun, 31 Oct 2010 05:29:47 +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 V8AnKBDQSeYv; Sun, 31 Oct 2010 05:29:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 101D4CA7F1; Sun, 31 Oct 2010 05:29:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0851CA7F2 for ; Sun, 31 Oct 2010 05:29:41 +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 rQsBmNRPmdz0 for ; Sun, 31 Oct 2010 05:29:30 +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 02C56CA7E7 for ; Sun, 31 Oct 2010 05:29:30 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9V4TSAR020874 for ; Sun, 31 Oct 2010 05:29:29 +0100 Original-Received: by fxm2 with SMTP id 2so4629668fxm.14 for ; Sat, 30 Oct 2010 21:29:28 -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=VqP5oefwG8cYhd8kBaHdGTiahLSB1gGtqfV7B3pBhco=; b=krhSSZRgLGM7QxwvfDDqYhUZhyebCetw/lE1SUuAUINOBf+Np96vSi2vGW9Qv2Mk/d ROpGwxajISLm35CbcpbX9Ub8F1+sGGKVEtxDU/wYb1tZ8QQ+h8/jhL+0Eyc/gNx0D/H0 xGIwPL3g6edrhL7MrLefTaOOu4p6Gumww1A/c= 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=pCgusK50aNzzFal4vxeTz0ujG1S1fcQKWZvuvBb41TUys9+vkqncSLA0xPmKxLVCCA F7FNU9V8OJBtHWKjNu85S6uL2vIVL2S0J+bIxlsjTlAM/bBjnFUWMzLyBYdK6WHGgHHm mZFphNiPnD/AEb3sZ5nbIgetQqeHk4apKZhRA= Original-Received: by 10.223.87.79 with SMTP id v15mr4228331fal.69.1288499368717; Sat, 30 Oct 2010 21:29:28 -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 15sm60840fal.22.2010.10.30.21.29.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 30 Oct 2010 21:29:27 -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.161.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: 08DpgttGL - 725177285258 - 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:63107 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 one \scrollmode\undefined\forcequitjob{bye} two \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 ___________________________________________________________________________________