>>>> "Martin" == Martin Buchholz
<martin(a)xemacs.org> writes:
>>>> "SJT" == Stephen J Turnbull
<turnbull(a)sk.tsukuba.ac.jp> writes:
>>>> "mb" == Martin Buchholz
<martin(a)xemacs.org> writes:
SJT> This is decidedly counterintuitive to me.
I would expect
SJT> that "./" is an explicit reference to the current directory,
SJT> and locate-library should only find the file there.
mb> But do you also believe that
mb> (load-library "mule/foo.el")
mb> should search load-path?
SJT> Yes. I have always thought that ./foo is an abbreviation for
SJT> `pwd`/foo, and similarly for ../foo (although you can't define that
SJT> similarly without self-reference). Ie, these are _absolute_ paths.
SJT> That's the way the shell works, for example.
Martin> Running the fictitious command
Martin> $ mule/foo
Martin> does not search PATH. It also uses _absolute_ paths, using your
Martin> non-standard terminology, just like
Martin> $ ./foo
I agree with both of you. `locate-file' has at least one other bug
connected with absolute file names. Unfortunately, there's quite a
bit of code which expects
(load-library "mule/foo.el")
to search the load-path.
So I suggest fixing ./ with locate-file, but leaving the other case
alone. I'll do it along with the other bug, if you guys want me to.
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla