Andy Wingo <[email protected]> writes:
> Then in your script you would (add-relative-load-path ".").
>
> Maybe we need an `add-to-load-path' form that handles the eval-when,
> actually, so it would be
>
> (add-to-load-path (dirname (current-source-filename)))
>
> or something like that. (We'd have to define current-source-filename as
> well, in terms of current-source-location.)
>
> What do folks think? Is it work it?
Yes, I think so! I think it will be a great help for uninstalled
experimentation.
I can think of a couple of plausible enhancements:
(1) factoring out any occurrences of "/x/.." and "/." in the directory
that results from the in-vicinity call
(2) only adding the directory to the load path if it isn't already
there.
But neither of those is crucial.
Of the possibilities above, I think I prefer
> (add-to-load-path (dirname (current-source-filename)))
Thanks for thinking about this.
Neil