From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Dennis Newsgroups: gmane.lisp.guile.user Subject: Parsing eval errors Date: Sat, 06 Jun 2009 17:53:12 +0100 Message-ID: <4A2A9EF8.8040002@btinternet.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244307209 1898 80.91.229.12 (6 Jun 2009 16:53:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jun 2009 16:53:29 +0000 (UTC) To: Guile Users Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 06 18:53:27 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MCz95-0001SB-62 for guile-user@m.gmane.org; Sat, 06 Jun 2009 18:53:27 +0200 Original-Received: from localhost ([127.0.0.1]:57450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCz94-0006hS-LG for guile-user@m.gmane.org; Sat, 06 Jun 2009 12:53:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCz91-0006hM-A9 for guile-user@gnu.org; Sat, 06 Jun 2009 12:53:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCz8w-0006fZ-EX for guile-user@gnu.org; Sat, 06 Jun 2009 12:53:22 -0400 Original-Received: from [199.232.76.173] (port=40548 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCz8w-0006fR-7v for guile-user@gnu.org; Sat, 06 Jun 2009 12:53:18 -0400 Original-Received: from smtp807.mail.ird.yahoo.com ([217.146.188.67]:34874) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MCz8v-00044y-NU for guile-user@gnu.org; Sat, 06 Jun 2009 12:53:18 -0400 Original-Received: (qmail 4068 invoked from network); 6 Jun 2009 16:53:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=btinternet.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=e2m5zpwsVxv9nicpggUPApyck26pQjOITdwGf+cy6ZFAnV/iAn4J9ZqMATYMzbQnvz5voLFRjpPjtKx2/U78lxD1My11xTyBby9iA3/dObu5Me1/0N2pLprmt9EeDXp2fUsesuyIm3WwZie9apqnCyN2D+pUHTkrK9m4olXq/z4= ; Original-Received: from unknown (HELO ?192.168.1.3?) (cgdennis@78.32.16.193 with plain) by smtp807.mail.ird.yahoo.com with SMTP; 6 Jun 2009 16:53:13 -0000 X-YMail-OSG: LgVmO9YVM1mtAPm2BAu7cYZ0FkjmHUEqu2R.0KjKdy9Cb8A.My_yrbVVEfeT1gnZ8XQxLSNE3zOZSQmG_G1B0AqxGxxJpjiJB_yxXw1ipDFGuiJEyotXahDN2x54gnekDuRQhD6qaWk.kAg4x0uMksMh.l7fKI8vv2SfiNC7ZkbFbrmVhCmOSsANR0AW8Iu1kHOTmbgpewqDVPZ43cLs6YOgVOnEds0yeOFu0rHlh9loG6AF4fh5T2TjWiwxjGmd1pdpA7GogQcPoUk1lX7B0mOw6Q5iSYozr8pCfPgMHTcv7T461ogTtD1YFXdvowyjP9Ezf77TnMu6dMdRnecSgShDOg-- X-Yahoo-Newman-Property: ymail-3 User-Agent: Thunderbird 2.0.0.21 (X11/20090409) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7321 Archived-At: Hello Guilers Is there some code anywhere for parsing the error information caught from local-eval? The following code is the best I have come up with so far, but the messages it produces aren't pretty: (define (error-handler key . args) (display (object->string key)) (for-each (lambda (arg) (display (_ ", arg=")) (display (object->string arg))) args) (newline)) (catch #t (local-eval s-expr (the-environment)) error-handler) regards Chris -- Chris Dennis cgdennis@btinternet.com Fordingbridge, Hampshire, UK