From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: feature/native-comp, comp-deferred-compilation: no recompilation when .elc newer than .eln? Date: Sat, 16 May 2020 07:30:32 +0000 Message-ID: References: <875zcxgx8f.fsf@no.workgroup> <877dxczwsy.fsf@no.workgroup> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41488"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 16 09:31:26 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZrI5-000Aia-Os for ged-emacs-devel@m.gmane-mx.org; Sat, 16 May 2020 09:31:25 +0200 Original-Received: from localhost ([::1]:47036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZrI4-0001r0-Qm for ged-emacs-devel@m.gmane-mx.org; Sat, 16 May 2020 03:31:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZrHK-0001F1-Oh for emacs-devel@gnu.org; Sat, 16 May 2020 03:30:38 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:50919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZrHJ-0006R7-Eg for emacs-devel@gnu.org; Sat, 16 May 2020 03:30:38 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 04G7UWCs026074 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sat, 16 May 2020 07:30:33 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 04G7UWPA006726; Sat, 16 May 2020 07:30:32 GMT In-Reply-To: <877dxczwsy.fsf@no.workgroup> (Gregor Zattler's message of "Fri, 15 May 2020 23:57:01 +0200") Received-SPF: pass client-ip=205.166.94.20; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/16 03:12:51 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250460 Archived-At: Gregor Zattler writes: >> 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 Hi Gregor, the bit I'm missing is how the load was performed after org is updated. Restarting Emacs or calling `load'? Thanks Andrea -- akrl@sdf.org