On Mon, Oct 21, 2024 at 2:34 PM Stefan Monnier wrote: > BTW, in your patch, you change `locate-file-internal` which seems wrong, > since that function is not specific to loading ELisp files, it's also > used for $MANPATH, $PATH, and things like that. You're right, the change in `locate-file-internal' didn't merge the original path. I attached the patch to append the `dirs' with `path' together. > Similarly, I wasn't able to convince myself that your patch does the > right thing when `require` or `load` is used such that MUST_SUFFIX is > not specified. The `load-hints` just put the matched paths on the top of `load-path`, still following the `load-path' mechanism, and won't affect any other features (Or someone already has some code to adjust the `load-path' orders, can just ignore the `load-hints', everything work like before, no break changes).