emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master f8bb6cca33: Return the same file from locate-file in nativeco


From: Stefan Monnier
Subject: Re: master f8bb6cca33: Return the same file from locate-file in nativecomp and non
Date: Mon, 14 Mar 2022 00:04:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii [2022-03-14 05:38:42] wrote:
>> From: Stefan Monnier <monnier@iro.umontreal.ca>
>> Cc: Lars Ingebrigtsen <larsi@gnus.org>,  emacs-devel@gnu.org
>> Date: Sun, 13 Mar 2022 22:57:48 -0400
>> > More generally, I'm not at all convinced that the problem, as
>> > presented in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51308#14,
>> > indeed needs a solution that makes locate-file behave the same as it
>> > did in Emacs 27, because the *.eln files introduce new aspects into
>> > the stuff that 'load' and 'load-history' intend to support.
>> `load` does not use `locate-file-internal`, so it's not affected.
> I don't see how this answers the concerns, sorry.

My point is that whatever we may want to do with `.el`, `.eln`, and
`.elc` files should be done without changing what `locate-file` does,
because `locate-file` is a generic function that looks for files through
a path, not a function that looks for ELisp-containing files.

And AFAICT all uses of `locate-file-internal` share that same desire
(more specifically I could only find 2 such uses: the one in
`locate-file` and one in `with-editor.el` which looks weird because it
seems it could just as well use `locate-file`).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]