From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51586 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source? Date: Fri, 3 Jul 2009 09:44:53 +0200 Message-ID: References: <50d1c22d0907011118h2d75ed8cmc1ec557da4518b62@mail.gmail.com> <6faad9f00907021452x6fc29d16r84188d058e6bcc0@mail.gmail.com> <4A4DABA8.40906@elvenkind.com> <4A4DAFB9.9090102@elvenkind.com> <4A4DB43B.1020600@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1374962869==" X-Trace: ger.gmane.org 1246607160 19019 80.91.229.12 (3 Jul 2009 07:46:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 07:46:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 09:45: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 1MMdSu-0005Id-UR for gctc-ntg-context-518@m.gmane.org; Fri, 03 Jul 2009 09:45:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 816181FC0B; Fri, 3 Jul 2009 09:45:48 +0200 (CEST) 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 29943-04; Fri, 3 Jul 2009 09:45:08 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B88B31FB82; Fri, 3 Jul 2009 09:45:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A15A31FB7F for ; Fri, 3 Jul 2009 09:45:06 +0200 (CEST) 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 29941-04 for ; Fri, 3 Jul 2009 09:44:55 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 00E101FB6B for ; Fri, 3 Jul 2009 09:44:54 +0200 (CEST) Original-Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n637istf023836 for ; Fri, 3 Jul 2009 09:44:54 +0200 Original-Received: by fxm17 with SMTP id 17so411412fxm.2 for ; Fri, 03 Jul 2009 00:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=AF9qHE/We/FyhY31a/q5QWbcnpMN4dKSw0hdVIB2Ob4=; b=fC2XDbeH7YAdtnQ7KP5ovUKycYDkq5+x5WSc1mq1UgJ3UERATOZ83ikcMH3sY3MtSh zkvffWuCb1dZaOuQzwBe4W0D0UTpeFH4ku3XSkbU3i47LKqRsROzSiR02jq9ZcMsdN8p S0GHppzmqeBNTOVtCanJKs17YMa4BFjy3tBHo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=NKPYACyJrSNQ989auu2BfX5z8GPZLmzdPjR363rZa4R/ypBmXQNq6NIIBRhvNbIyU7 cjcwDCftglNDp6Bd51fnIdikQgjNFaNYmdwiFjDOuUi5C2KnJ4f33fFK6PxlbUQiwQGj qYVpe2J3kB01XYA5QmSJfue9xS9jm8MHSTnPY= Original-Received: by 10.204.66.130 with SMTP id n2mr990307bki.63.1246607093886; Fri, 03 Jul 2009 00:44:53 -0700 (PDT) In-Reply-To: <4A4DB43B.1020600@elvenkind.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.217; 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: 254880419 - 8f04ecb6405b - 20090703 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:51586 Archived-At: --===============1374962869== Content-Type: multipart/alternative; boundary=00504502e2c601757b046dc8551f --00504502e2c601757b046dc8551f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Fri, Jul 3, 2009 at 9:33 AM, Taco Hoekwater wrote: > > > luigi scarso wrote: > > > > we need something like a stack trace; > > also a lua "try/except" construct should be nice . > > stack trace of tex? > No no, sorry -- I mean traceback, something like this Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module OFS.ObjectManager, line 569, in manage_exportObject Module OFS.XMLExportImport, line 56, in exportXML Module OFS.XMLExportImport, line 31, in XMLrecord Module Shared.DC.xml.ppml, line 263, in load Module pickle, line 872, in load Module Shared.DC.xml.ppml, line 418, in load_binput AttributeError: 'unicode' object has no attribute 'id' -- luigi --00504502e2c601757b046dc8551f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 3, 2009 at 9:33 AM, Taco Hoe= kwater <taco@elv= enkind.com> wrote:


luigi scarso wrote:
>
> we need something like a stack trace;
> also a lua "try/except" construct should be nice .

stack trace of tex?
No no, sorr= y -- I mean traceback, something like=C2=A0 this
Traceback (innermost la= st):
=C2=A0 Module ZPublisher.Publish, line 119, in publish
=C2=A0 Mo= dule ZPublisher.mapply, line 88, in mapply
=C2=A0 Module ZPublisher.Publish, line 42, in call_object
=C2=A0 Module = OFS.ObjectManager, line 569, in manage_exportObject
=C2=A0 Module OFS.XM= LExportImport, line 56, in exportXML
=C2=A0 Module OFS.XMLExportImport, = line 31, in XMLrecord
=C2=A0 Module Shared.DC.xml.ppml, line 263, in load
=C2=A0 Module pickle= , line 872, in load
=C2=A0 Module Shared.DC.xml.ppml, line 418, in load_= binput
AttributeError: 'unicode' object has no attribute 'id= '


--
luigi

--00504502e2c601757b046dc8551f-- --===============1374962869== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1374962869==--