guile-devel
[Top][All Lists]
Advanced

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

Re: add-relative-load-path ?


From: Neil Jerram
Subject: Re: add-relative-load-path ?
Date: Sat, 14 Jan 2012 21:48:57 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Andy Wingo <address@hidden> 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



reply via email to

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