From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62537 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.comp.tex.context Subject: Error message wrong when \component is used Date: Tue, 12 Oct 2010 23:59:29 +1100 Message-ID: <746538930812A54DA07A768D5232947001CA302F23@exvic-mbx01.nexus.csiro.au> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1286888395 14050 80.91.229.12 (12 Oct 2010 12:59:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Oct 2010 12:59:55 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 12 14:59:52 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 1P5eSN-0000YD-3f for gctc-ntg-context-518@m.gmane.org; Tue, 12 Oct 2010 14:59:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C490CA6F4; Tue, 12 Oct 2010 14:59:50 +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 gRyNQTyEt7-K; Tue, 12 Oct 2010 14:59:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8F36CA6DF; Tue, 12 Oct 2010 14:59:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F06B8CA6DF for ; Tue, 12 Oct 2010 14:59:42 +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 MW07F5JqvDnh for ; Tue, 12 Oct 2010 14:59:39 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id AC20FCA639 for ; Tue, 12 Oct 2010 14:59:39 +0200 (CEST) Original-Received: from vic-MTAout4.csiro.au (vic-MTAout4.csiro.au [150.229.64.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9CCxWDF004974 for ; Tue, 12 Oct 2010 14:59:36 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=csiro.au; i=Robin.Kirkham@csiro.au; q=dns/txt; s=email; t=1286888377; x=1318424377; h=from:to:date:subject:message-id: content-transfer-encoding:mime-version; z=From:=20|To:=20|Date:=20Tue,=2012=20Oct=202010=2023:59:29=20+1100 |Subject:=20Error=20message=20wrong=20when=20\component =20is=20used|Message-ID:=20<746538930812A54DA07A768D52329 47001CA302F23@exvic-mbx01.nexus.csiro.au> |Content-Transfer-Encoding:=20quoted-printable |MIME-Version:=201.0; bh=byiIzeETIqwafyLVPPHldq+AwHlioLFWcn0xT0f/Fss=; b=f2kZM5S34724YasrgEgAoRMTIGp4g4iUf3qqyQKbtu/NMfO5H6nLTsDT r2ahQoRkK+7ia34nlH150V7gtQu5JLCYmXLYxk+ykuRYO0Y8Zuw5ReoM2 FT7stRpvW6f+ipQ; X-IronPort-AV: E=Sophos;i="4.57,320,1283695200"; d="scan'208";a="48162755" Original-Received: from exvic-htca02.nexus.csiro.au ([138.194.81.127]) by vic-ironport-int.csiro.au with ESMTP/TLS/RC4-MD5; 12 Oct 2010 23:59:30 +1100 Original-Received: from exvic-mbx01.nexus.csiro.au ([138.194.81.121]) by exvic-htca02.nexus.csiro.au ([138.194.81.127]) with mapi; Tue, 12 Oct 2010 23:59:30 +1100 Thread-Topic: Error message wrong when \component is used Thread-Index: AQHLag1OBKjzwKSAPk+jIZP3PCxwDg== Accept-Language: en-US, en-AU Content-Language: en-AU X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-AU X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=150.229.64.41; country=AU; region=01; city=Canberra; latitude=-35.2833; longitude=149.2167; http://maps.google.com/maps?q=-35.2833,149.2167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DhMXx5H - b85b70331b42 - 20101012 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:62537 Archived-At: Dear all, I find that when there is an error (at least, "undefined control sequence") in a file included using \component, the supposedly erroneous lines printed are from the calling file, not the file where the error actually is (although the line number seems correct, and there are clues where the error really lies). Minimal example ... file1.tex: \startproduct file1 \starttext Bla bla bla. Bla bla bla. Bla bla bla. \component file2 \stoptext \stopproduct file2.tex: \startcomponent file2 Bleh bleh bleh. Bleh bleh bleh. Bleh bleh bleh. \zorg \stopcomponent When I run "context file1" I get an error: ... ConTeXt ver: 2010.10.12 01:03 MKIV fmt: 2010.10.12 int: english/english ... systems : begin file file1 at line 1 systems : begin file file2 at line 6 (file2.tex ! Undefined control sequence. system > error on line 5 in file file1.tex: Undefined control sequence ... 1 \startproduct file1 2 \starttext 3 Bla bla bla. 4 Bla bla bla. 5 >> Bla bla bla. 6 \component file2 7 \stoptext 8 \stopproduct l.5 \zorg If I replace \component with \input in file1.tex, all works correctly and the error ("\zorg") is correctly pointed out. Best, Robin ___________________________________________________________________________________ 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 ___________________________________________________________________________________