GNU bug report logs -
#46256
[feature/native-comp] AOT eln files ignored if run from build tree
Previous Next
Full log
View this message in rfc822 format
> Date: Wed, 10 Mar 2021 16:56:14 +0000
> Cc: akrl <at> sdf.org, 46256 <at> debbugs.gnu.org, andrewjmoreton <at> gmail.com,
> pipcet <at> gmail.com
> From: Alan Mackenzie <acm <at> muc.de>
>
> > We are not talking about compilation, we are talking about loading
> > cc-* files.
>
> The cc-*.el files? The cc-*.elc files simply have compiled `require's in
> them and shouldn't be reloading already loaded .elc files. I don't know
> anything about the cc-*.eln files.
It's not realated to *.eln files, AFAIU. Emacs was byte-compiling
cc-*.el files. As part of byte-compiling, we load these files, right?
And when we load them, cc-require causes some CC mode files to be
loaded more than once in the same session.
Perhaps there was some trick there not to do that when we load the
*.elc files instead, and perhaps the compiled code in the
corresponding *.eln files misses that trick.
> > When we process cc-require, we end up loading the required CC mode
> > file, even though it is already loaded.
>
> Yes, if it is processed while loading the source .el file. This is a
> facility designed for CC Mode hackers, in particular Martin S., whose
> working style apparently led to him switching source directories
> frequently.
If this is the intended behavior, fine. I just was surprised by those
multiple loads and didn't expect them.
This bug report was last modified 4 years and 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.