[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: Wed, 11 Nov 2009 20:20:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> When load-file-name is nil,  this uses the name of default directory of
> current buffer. But that's not the same as the directory of the file
> containing the load-relative function.

> For example, I could have eval'd a buffer that did a load-relative of a file
> in a different directory. Even without this, I can change the default
> directory using the cd function. And changing the default directory never
> changes the file location of the file issuing load-relative.

> Any other thoughts?

You obviously know enough about the problem to "fix it" further
(e.g. using buffer-file-name if you prefer it to default-directory).
I don't see any point in fixing it further, since there will always be
corner cases where it doesn't do what the user intended.


reply via email to

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