GNU bug report logs -
#23638
"load" should use directory from load-file-name as a final fallback
Previous Next
Reported by: Robert Weiner <rswgnu <at> gmail.com>
Date: Sat, 28 May 2016 14:35:02 UTC
Severity: wishlist
Tags: wontfix
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> It sounds convenient, but also kinda chaotic -- if I load "/tmp/foo.el",
> then I may not want to load anything else from "/tmp/" just because
> "/tmp/foo.el" says "(require 'bar)". That is, it sounds kinda insecure.
>
> There's also the issue of being consistent -- today,
> '(load "/tmp/foo.el")' and `C-x C-f /tmp/foo.el RET' and then
> `eval-buffer' gives the same result... but this wouldn't be the case if
> we changed `load' this way.
>
> Now, we could add a new command `load-file-with-directory' or something
> that would do this -- that would be more clear, at least, that we're
> playing games with `load-path', and would be almost as convenient as if
> `load' did this itself.
>
> Any opinions here?
Nobody had any opinions here in a year, so I think the conclusion is
that we don't want to do this, and I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 13 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.