]> git.eshelyaron.com Git - emacs.git/commit
Flocate_file_internal: Protect from `.eln` remapping
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 Mar 2022 04:51:22 +0000 (23:51 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 13 Mar 2022 04:51:22 +0000 (23:51 -0500)
commit20d9c4b59fe8f9cc94230292ceab9d4d2b74c696
treee3fb2d70a4d586b26a7977a62fd00a5441ef79f9
parente7ab69e762c10073e6c52b69ff5e83ad2c638803
Flocate_file_internal: Protect from `.eln` remapping

Don't use `openp`s functionality to remap `.elc` files to `.eln` files
since `locate-file` is not specific to ELisp files.
This should be not just simpler but more robust than the current
hack which tries to undo the damage after the fact.

* src/lread.c (Flocate_file_internal): Don't map `.elc` to `.eln`.
* lisp/files.el (locate-file): Simplify accordingly.
lisp/files.el
src/lread.c