unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregor Zattler <telegraph@gmx.net>
To: emacs-devel@gnu.org
Subject: Re: feature/native-comp, comp-deferred-compilation: no recompilation when .elc newer than .eln?
Date: Fri, 15 May 2020 23:57:01 +0200	[thread overview]
Message-ID: <877dxczwsy.fsf@no.workgroup> (raw)
In-Reply-To: <xjfa729gf1r.fsf@sdf.org>

Hi Andrea,
* Andrea Corallo <akrl@sdf.org> [2020-05-15; 19:43]:
> Gregor Zattler <telegraph@gmx.net> writes:
>> I gave feature/native-comp in combination with
>> `comp-deferred-compilation` a try.  I use org-mode from git
>> master and it's .elc files eventually were compiled to .eln
>> files.  Works like a charm.
>>
>> Then I updated org-mode (make update) since there was a (for
>> me) important bug fix.  Now org.elc is newer than org.el
>> which in turn is newer than org.eln.
>>
>> But nonetheless the org.eln file does not get re-created
>> according from the newer org.elc file.
>>
>> Is this on purpose?


> I'm not sure the sequence of events is clear to me, especially how the
> the new org was loaded after it was compiled calling make.

I use org-mode from git.  Org-mode has a build system and
esypecially `make up1` does a git pull, compile , builds
documentation and runs checks.  I do this from time to time.

The relevant part of the git repo is in my emacs load-path:

(add-to-list 'load-path (expand-file-name "~/src/org-mode/lisp"))
(setq load-path (cons "~/src/org-mode/contrib/lisp/" load-path))

> Deferred compilation logic to date works as follow: if an elc is being
> loaded, is lexical and the corresponding source is found, then an async
> compilation is queued.  No file date is taken in account.
>
> Is it possible that the old eln is still being loaded because
> load-prefer-newer is nil?

load-prefer-newer is t in my case.  The stale org.eln file
was loaded instead of the newer org.elc and the newer
org.elc wasn't compiled to a newer org.eln file.  I realized
because I experienced a specific bug although there was a
patch with a fix in the repo.

Thanks, Gregor




  reply	other threads:[~2020-05-15 21:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 13:10 feature/native-comp, comp-deferred-compilation: no recompilation when .elc newer than .eln? Gregor Zattler
2020-05-15 19:43 ` Andrea Corallo
2020-05-15 21:57   ` Gregor Zattler [this message]
2020-05-16  7:30     ` Andrea Corallo
2020-05-16  9:59       ` Gregor Zattler
2020-05-16 13:23         ` Andrea Corallo
2020-06-06 21:51         ` Andrea Corallo
2020-06-09  6:17           ` Gregor Zattler
2020-06-10 20:29             ` Gregor Zattler
2020-06-11 19:05               ` Andrea Corallo

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=877dxczwsy.fsf@no.workgroup \
    --to=telegraph@gmx.net \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).