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.bugs Subject: bug#40838: 28.0.50; [feature/native-comp] Function overrides in init.el are not honored after deferred compilation Date: Sat, 25 Apr 2020 09:16:38 +0000 Message-ID: References: <87zhb0q8wi.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44871"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: 40838@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 25 11:17:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1jSGw2-000BXc-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 11:17:18 +0200 Original-Received: from localhost ([::1]:33110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSGw1-0002kb-5Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 05:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54954) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSGvo-0002kI-HZ for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 05:17:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSGvo-0004rc-0C for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 05:17:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSGvm-0004rX-50 for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 05:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSGvm-0006Y9-13 for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 05:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Apr 2020 09:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40838 X-GNU-PR-Package: emacs Original-Received: via spool by 40838-submit@debbugs.gnu.org id=B40838.158780620425150 (code B ref 40838); Sat, 25 Apr 2020 09:17:01 +0000 Original-Received: (at 40838) by debbugs.gnu.org; 25 Apr 2020 09:16:44 +0000 Original-Received: from localhost ([127.0.0.1]:58518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSGvU-0006XZ-20 for submit@debbugs.gnu.org; Sat, 25 Apr 2020 05:16:44 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:59819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSGvP-0006XP-Ht for 40838@debbugs.gnu.org; Sat, 25 Apr 2020 05:16:42 -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 03P9GcDg025259 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sat, 25 Apr 2020 09:16:38 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 03P9Gcw0031109; Sat, 25 Apr 2020 09:16:38 GMT In-Reply-To: <87zhb0q8wi.fsf@localhost> (Ihor Radchenko's message of "Sat, 25 Apr 2020 16:14:37 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178975 Archived-At: Hi Ihor, Ihor Radchenko writes: > I redefine or patch some functions from packages in my init.el. > However, I noticed that the default definitions can be unexpectedly > restored. > > I observe the following when comp-deferred-compilation is set to 't: > > 1. A package that is not native-compiled is loaded on startup and the > native-comp process is started asynchronously > 2. Some function from the package is redefined in my init.el > 3. The native compilation finishes > 4. My function definition from init.el is no longer working. The default > version is restored. > > I do not think that loading .eln files should override function slots if > they are different from what is in the original .el file. You are 100% right, it should not (we have some specific logic for that). I'll look into it thanks for the bug report. Andrea -- akrl@sdf.org