[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Source locations

From: Wolfgang Jaehrling
Subject: Re: Source locations
Date: Sat, 8 Feb 2003 18:22:44 +0100
User-agent: Mutt/1.3.28i

On Sat, Feb 08, 2003 at 12:12:41PM +0100, Joris van der Hoeven wrote:
> In the online guile manual, I found that the instruction
>       (read-enable 'positions)
> should tell guile to remember positions in the source code.
> How can I use this information? I would like to be able
> to display a filename and a line/column number when
> an error is encountered in an embedded guile program.

If you (read ...) some object `obj' from a file, you can do
(source-property obj 'filename), (source-property obj 'line) and
(source-property obj 'column) to get the position where this object
has been read from.

Hope this helps.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]