[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17467: 24.3; locate-library returning spurious path
From: |
Stefan Monnier |
Subject: |
bug#17467: 24.3; locate-library returning spurious path |
Date: |
Sun, 11 May 2014 17:56:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> The issue is that locate-library returns spurious paths like ".*/tramp" or
> ".*xxx/tramp.gz"
I don't see why these are necessarily spurious. Please give very
concrete examples, so as to make it crystal clear why they're spurious.
> This is both unexpected and incorrect given this function name and
> spec.
Unexpected to you, obviously, but I'm not convinced it's unexpected in
general (after all, I don't remember other bug-reports in this area) and
definitely not incorrect. See the docstring of `load':
Execute a file of Lisp code named FILE.
First try FILE with `.elc' appended, then try with `.el',
then try FILE unmodified (the exact suffixes in the exact order are
determined by `load-suffixes'). Environment variable references in
[...]
Of course, there's an ambiguity about how the search is performed,
w.r.t. to whether it does:
(dolist (s suffixes) (dolist (d load-path) ...)))
or
(dolist (d load-path) (dolist (s suffixes) ...)))
We do the second, so that a compiled file in a later directory does not
override a non-compiled file in an earlier directory.
Stefan
- bug#17467: 24.3; locate-library returning spurious path, (continued)
bug#17467: 24.3; locate-library returning spurious path, Glenn Morris, 2014/05/11
bug#17467: 24.3; locate-library returning spurious path, Stefan Monnier, 2014/05/11
- bug#17467: 24.3; locate-library returning spurious path, Alex Kosorukoff, 2014/05/11
- bug#17467: 24.3; locate-library returning spurious path,
Stefan Monnier <=
- bug#17467: 24.3; locate-library returning spurious path, Alex Kosorukoff, 2014/05/11
- bug#17467: 24.3; locate-library returning spurious path, Glenn Morris, 2014/05/11
- bug#17467: 24.3; locate-library returning spurious path, Alex Kosorukoff, 2014/05/11
- bug#17467: 24.3; locate-library returning spurious path, Alex Kosorukoff, 2014/05/11
bug#17467: 24.3; locate-library returning spurious path, Stefan Monnier, 2014/05/11
bug#17467: 24.3; locate-library returning spurious path, Alex Kosorukoff, 2014/05/12
bug#17467: 24.3; locate-library returning spurious path, Stefan Monnier, 2014/05/12
bug#17467: 24.3; locate-library returning spurious path, Alex Kosorukoff, 2014/05/12
bug#17467: 24.3; locate-library returning spurious path, Stefan Monnier, 2014/05/15