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: Tue, 15 Mar 2022 09:11:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> Are there cases where we can "lie to it", for example giving "false"
> information about the state of the file-system by let-binding a
> variable or something?

No.

>> It can definitely be a useful building block to find a `.eln` file, but
>> its job is not to find `.eln` files.
> Are you suggesting a way forward could be to pass a pre-fabricated
> collection of (e.g.) ELC to ELN mappings, eg. as an optional param to
> locate-file?

No.  Why would you want that?
You can just as easily use such a mapping after calling the function.

> FWIW, I think it would be nice to "easily discover" all of the
> relevant source file locations for any natively compiled sources I may
> have loaded.

It should be easy to do that (tho it's not clear exactly what you mean
by that), but it's not the job of `locate-file`.


        Stefan




reply via email to

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