From: Lars Ingebrigtsen <larsi@gnus.org>
To: Robert Weiner <rswgnu@gmail.com>
Cc: 23638@debbugs.gnu.org
Subject: bug#23638: "load" should use directory from load-file-name as a final fallback
Date: Sun, 08 May 2022 14:22:47 +0200 [thread overview]
Message-ID: <87o808i57s.fsf@gnus.org> (raw)
In-Reply-To: <875z346mvb.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 07 Feb 2021 14:14:32 +0100")
Lars Ingebrigtsen <larsi@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
prev parent reply other threads:[~2022-05-08 12:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-28 14:33 bug#23638: "load" should use directory from load-file-name as a final fallback Robert Weiner
2016-05-28 14:49 ` bug#23638: Someone thought relative file loading was enough of a problem, he wrote a whole package for it Robert Weiner
2021-02-07 13:14 ` bug#23638: "load" should use directory from load-file-name as a final fallback Lars Ingebrigtsen
2022-05-08 12:22 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o808i57s.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=23638@debbugs.gnu.org \
--cc=rswgnu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.