[slime-devel] "rebasing" the source code tree for slime-edit-definition

Hi, Is there any recommended way to "rebase" the source tree for definitions in Slime, so that M-. (slime-edit-definition) will find the definition in the "new" location (for example after a Lisp image has been saved and moved to a new machine, where the source code still exists but is in a different location from where it was during the build)? I see code in xref.lisp which looks like it could re-analyze the source code in the new location, but that looks like overkill -- normally this information is already in the Lisp image right? (but probably in an implementation-specific way). Anyway all I really need is a way to replace an "old" absolute pathname prefix to the source code with a "new" prefix, reflecting where the source tree is on the current machine. Regards, Dave -- My Best, Dave Cooper, Genworks Support david.cooper@genworks.com, dave.genworks.com(skype) USA: 248-327-3253(o), 1-248-330-2979(mobile) UK: 0191 645 1699

On Tue, Mar 05 2013, Dave Cooper wrote:
Hi,
Is there any recommended way to "rebase" the source tree for definitions in Slime, so that M-. (slime-edit-definition) will find the definition in the "new" location (for example after a Lisp image has been saved and moved to a new machine, where the source code still exists but is in a different location from where it was during the build)?
You could set slime-from-lisp-filename-function to something that computes the new filename. Helmut
participants (2)
-
Dave Cooper
-
Helmut Eller