From: Emanuel Berg <moasenwood@zoho.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: Source file '.../killer-source.el' newer than byte-compiled file
Date: Wed, 24 Apr 2019 00:59:15 +0200 [thread overview]
Message-ID: <86v9z4fhvg.fsf@zoho.eu> (raw)
In-Reply-To: 831s1s4kab.fsf@gnu.org
Eli Zaretskii wrote:
> Just ignore those messages, really. They are
> mostly harmless. You could compile the
> dependent file again if you want, but that is
> rarely needed, mainly when they define macros
> that were changed, and those macros are used
> by the files which require a.el.
I think you are right, because if you weren't,
this should have broken my system one zillion
times by now, and that hasn't happened, but
I don't understand why. Because think of this
scenario:
First, a.el is the file that `require' b, so
b is `provide'd in b.el.
Both a.el and b.el are edited, a.el w/o bugs,
b.el *with* bugs.
a.el is compiled before b.el is compiled.
When a.el is compiled, it requires b, so,
depending on the variable `load-prefer-newer'
it either gets the buggy b.el _or_ the old
b.elc. Because I never touched the variable,
which defaults to `nil', a.el will get the
old b.elc.
Now, because b.elc exists, it doesn't come with
bugs, as I would have seen that when I compiled
it last time. So a gets a bug-free, but old,
version of b.
Now the compiler comes to b.el and tells me
there is a bug in the file. I fix that bug and
it compiles into a new, bug-free b.elc.
However a.elc is newer than a.el, so a.el won't
recompile to get the new version!
So c.el compiles, and it also requires b.
Now there is no warning from the byte-compiler
since b.elc is newer than b.el. _But_ c got
another version of b.elc than did a!
What does this situation mean?
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2019-04-23 22:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-23 17:39 Source file '.../killer-source.el' newer than byte-compiled file Emanuel Berg
2019-04-23 17:49 ` Eli Zaretskii
2019-04-23 18:32 ` Emanuel Berg
2019-04-23 18:39 ` Emanuel Berg
2019-04-23 19:03 ` Eli Zaretskii
2019-04-23 22:42 ` Emanuel Berg
2019-04-23 23:17 ` Nick Dokos
2019-04-24 0:18 ` Emanuel Berg
2019-04-24 1:33 ` Emanuel Berg
2019-04-24 6:24 ` Eli Zaretskii
2019-04-25 3:25 ` `eval-when-compile' and circular dependencies (was: Re: Source file '.../killer-source.el' newer than byte-compiled file) Emanuel Berg
2019-04-25 6:37 ` Eli Zaretskii
2019-04-25 7:03 ` Emanuel Berg
2019-04-25 8:43 ` Eli Zaretskii
2019-04-23 19:02 ` Source file '.../killer-source.el' newer than byte-compiled file Eli Zaretskii
2019-04-23 22:59 ` Emanuel Berg [this message]
2019-04-23 18:02 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86v9z4fhvg.fsf@zoho.eu \
--to=moasenwood@zoho.eu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).