From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: macro like "my" in Perl Date: 16 Jul 2002 21:49:56 +0100 Sender: guile-user-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1026853149 9072 127.0.0.1 (16 Jul 2002 20:59:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 16 Jul 2002 20:59:09 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17UZPW-0002Lf-00 for ; Tue, 16 Jul 2002 22:59:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17UZMi-0007iW-00; Tue, 16 Jul 2002 16:56:12 -0400 Original-Received: from mail.uklinux.net ([80.84.72.21] helo=s1.uklinux.net) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17UZM6-0007fG-00 for ; Tue, 16 Jul 2002 16:55:34 -0400 Original-Received: from portalet.ossau.uklinux.net (ppp-0-71.lond-a-1.access.uk.tiscali.com [80.225.196.71]) (authenticated) by s1.uklinux.net (8.11.6/8.11.6) with ESMTP id g6GKtV213728 for ; Tue, 16 Jul 2002 21:55:31 +0100 Original-Received: from laruns.ossau.uklinux.net.ossau.uklinux.net (laruns.ossau.uklinux.net [192.168.1.3]) by portalet.ossau.uklinux.net (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id F422016C2 for ; Tue, 16 Jul 2002 21:55:58 +0000 (GMT) Original-To: guile-user@gnu.org Original-Lines: 26 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:751 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:751 >>>>> "Paul" == Paul Jarc writes: Paul> Neil Jerram wrote: >> (error (format #f "Bad element ~S at ~A:~A:~A" >> (car elts) >> (source-property (car elts) 'filename) >> (source-property (car elts) 'line) >> (source-property (car elts) 'column))) Paul> Great, this works. Although in my guile (1.5.6), this seems to be Paul> disabled by default, so I had to add (read-enable 'positions). guile> (list-no-pairs 1 (2 2) 3) >> standard input:25:20: In procedure error in expression (error (format #f "Bad element ~S at ~A:~A:~A" ...)): >> standard input:25:20: Bad element (2 2) at standard input:36:17 >> ABORT: (misc-error) Paul> My error messages look like: Paul> ERROR: Bad element (2 2) at ./script:21:11 Paul> How do you get the filename and positions at the beginning of the Paul> line? Sorry, I don't understand. What exactly do you want it to look like? Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user