[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Description of `program-sources' and accessors
From: |
Diogo F. S. Ramos |
Subject: |
Re: Description of `program-sources' and accessors |
Date: |
Tue, 22 Apr 2014 13:43:04 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
>> I'm using this interface to know where an object has been defined.
>
> What does this mean? (Have you seen the (system xref) facility? It
> doesn't do a good job with non-procedures, but perhaps we could change
> that.)
Thank you for the reference. `procedure-callees' and
`procedure-callers' are very useful.
For what I mean, I want to know the source file and line where an object
has been defined. For example:
(object-location (module-ref (current-module) 'procedure-callees)) =>
((file . "/path/to/module/system/xref.scm") (line . 89))
I couldn't figure out how to achieve it with (system xref) but after
your explanation, I'm using the VMs interface, hence my previous
question.