From: npostavs@users.sourceforge.net
To: Eli Zaretskii <eliz@gnu.org>
Cc: 17848@debbugs.gnu.org
Subject: bug#17848: #17848 add suffix search to -l even when directory part in argument
Date: Wed, 07 Sep 2016 20:06:45 -0400 [thread overview]
Message-ID: <87y4331ch6.fsf@users.sourceforge.net> (raw)
In-Reply-To: <83k2epax17.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Sep 2016 18:05:40 +0300")
tags 17848 - patch
quit
Eli Zaretskii <eliz@gnu.org> writes:
> The proposed patch indeed passes an absolute file name to 'load', but
> it passes the name of the first candidate file found by 'locate-file',
> and that could very well be different from what 'load' would have
> found, because 'load' has some additional features and logic that
> 'locate-file' doesn't.
Actually, thinking more about it, I wonder what's wrong with just doing
emacs -l '$PWD/foo'
or even
emacs -l $PWD/foo
So then it's just a question of whether it's worth saving a few
characters on the command line (to write ./foo instead of '$PWD/foo'),
to which I'm inclined to answer "no", especially since implementing it
turns out to be rather fiddly.
>
> One other thought: should we prefer an exact match, without any
> extensions, in this particular case? IOW, should "-l ./foo" prefer
> 'foo" even if "foo.el" or "foo.gz" etc. exist in the current
> directory? If we should indeed prefer an exact match, then we might
> need to tweak the order of the suffixes to support that.
prev parent reply other threads:[~2016-09-08 0:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 5:23 bug#16406: load prefers directories rather than searching load-path Glenn Morris
2014-01-10 14:46 ` Stefan Monnier
2016-08-21 16:35 ` npostavs
2016-09-03 16:43 ` npostavs
2016-09-03 17:32 ` Eli Zaretskii
2016-09-03 18:43 ` npostavs
2016-09-03 19:00 ` Eli Zaretskii
2016-09-03 19:12 ` npostavs
2016-09-03 19:27 ` Eli Zaretskii
2016-09-07 23:27 ` npostavs
2016-09-04 22:06 ` bug#17848: #17848 add suffix search to -l even when directory part in argument (WAS: Re: bug#16406: load prefers directories...) npostavs
2016-09-05 15:07 ` Eli Zaretskii
2016-09-05 22:59 ` bug#17848: #17848 add suffix search to -l even when directory part in argument npostavs
2016-09-06 15:05 ` Eli Zaretskii
2016-09-08 0:06 ` npostavs [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4331ch6.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=17848@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).