[Top][All Lists]
[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
- add-relative-load-path ?, Andy Wingo, 2012/01/08
- Re: add-relative-load-path ?,
Neil Jerram <=
- Re: add-relative-load-path ?, Andy Wingo, 2012/01/20
- Re: add-relative-load-path ?, Neil Jerram, 2012/01/21
- Re: add-relative-load-path ?, Andy Wingo, 2012/01/23
- Re: add-relative-load-path ?, Ludovic Courtès, 2012/01/23
- Re: add-relative-load-path ?, Andy Wingo, 2012/01/23
- Re: add-relative-load-path ?, Neil Jerram, 2012/01/23
- Re: add-relative-load-path ?, Ludovic Courtès, 2012/01/25
- Re: add-relative-load-path ?, Andy Wingo, 2012/01/25
- Re: add-relative-load-path ?, Ludovic Courtès, 2012/01/25
- Re: add-relative-load-path ?, Andy Wingo, 2012/01/25