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: Thu, 11 Jun 2020 19:05:41 +0000 Message-ID: References: <875zcxgx8f.fsf@no.workgroup> <877dxczwsy.fsf@no.workgroup> <87ftc0nqtv.fsf@no.workgroup> <87pna8rceq.fsf@no.workgroup> <87wo4epsv1.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="85511"; 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 Thu Jun 11 21:15:37 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 1jjSfp-000M9N-H4 for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 21:15:37 +0200 Original-Received: from localhost ([::1]:34446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjSfo-0002Ui-Hu for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Jun 2020 15:15:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjSem-0001Vl-2y for emacs-devel@gnu.org; Thu, 11 Jun 2020 15:14:32 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:56439) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjSej-00020t-Tm for emacs-devel@gnu.org; Thu, 11 Jun 2020 15:14:31 -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 05BJ5fP4016352 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Thu, 11 Jun 2020 19:05:41 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 05BJ5fl4022352; Thu, 11 Jun 2020 19:05:41 GMT In-Reply-To: <87wo4epsv1.fsf@no.workgroup> (Gregor Zattler's message of "Wed, 10 Jun 2020 22:29:22 +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/06/11 15:05:42 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_HELO_NONE=0.001, SPF_PASS=-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:252129 Archived-At: Gregor Zattler writes: > Hi Andrea, > * Gregor Zattler [2020-06-09; 08:17]: >> * Andrea Corallo [2020-06-06; 21:51]: >>> This issue should be fixed by Nico's patch e38678b268 "Reduce the number >>> of files probed when finding a lisp file." >>> >>> Hope works for you, in case does not please complain :) >> >> I will test in the next days. > > it worked, but only after the 3rd invokation of emacs: > > 1. I recompiled emacs, checked out an old version of org > mode with a certain bug, compiled that, used it with the > new emacs, this produced an org.eln file with the > specific bug. Which I experienced while using org-mode. > > 2. I killed emacs, checked out newest org-mode, compiled it, > started emacs, used org-mode, org.el was not shown in the > async compile buffer, and the bug was still present and > the eln file was older than the el an elc files. > > 3. I killed emacs, started it again, used an org-file, now > org.el showed up in the async compile buffer, but the eln > file was as old as before and the bug was present. > > 4. I killed emacs. Had a look again for the org.el[cn]? > files: now the eln file was newest, I used org-mode and > the bug was gone. > > I understand, that a new elc file is used in emacs, the > compilation to eln happens async and when finished the eln > file is not loaded over the elc file. Therefore I have to > restart emacs in order to actually use the eln file. Well the .eln should be loaded over the .elc, but happen in a transparent way. > I do not understand why my org-usage in step 2 didn't > trigger the compilation of the eln file. Is a little hard do undestand what is going on from here. Actually this mechanism (the one that triggers the compilation) will be radically simplified once the dynamic scope support comes in. I've a branch for that already and I've 'just' to make it work :) I suggest we rediscuss this with the new mechanism in place given it should substitute the current one. Thanks for trying the branch! Andrea -- akrl@sdf.org