[Top][All Lists]

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

Re: relative load-file

From: Stefan Monnier
Subject: Re: relative load-file
Date: Tue, 17 Nov 2009 22:20:05 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> Let me state this clearly, because I'm not sure you're getting it.
> A function that is being defined does not necessarily get defined
> from a file.

I think he gets it, mind you.  His usage pattern is just different.
His request makes sense.  But as long as his code is written properly
(expand-file-name <foo> (file-name-directory (or load-file-name
buffer-file-name))) should give the right result both during load and
during eval-buffer.  We could also change #$ to return (or load-file-name
buffer-file-name) rather than load-file-name so that
(expand-file-name <foo> (file-name-directory #$)) does the trick even
more reliably.


reply via email to

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