From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Myhrberg Newsgroups: gmane.emacs.bugs Subject: bug#43089: [feature/native-comp] eval-after-load against files loaded from *.eln doesn't work after fix for bug#43089 Date: Mon, 31 Aug 2020 23:12:16 +0100 Message-ID: References: <42eb070f-3785-dad6-ec1d-2bc6911c5be7@posteo.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26907"; mail-complaints-to="usenet@ciao.gmane.io" To: 43089@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 01 06:29:11 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 1kCxuw-0006td-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 06:29:11 +0200 Original-Received: from localhost ([::1]:60388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCxuv-0004oa-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 00:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCxuo-0004mx-Jc for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 00:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42950) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCxuo-0004ka-9R for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 00:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCxuo-0008Ae-5u for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 00:29:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <42eb070f-3785-dad6-ec1d-2bc6911c5be7@posteo.eu> Resent-From: Jim Myhrberg Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Sep 2020 04:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43089 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159893453531387 (code B ref -1); Tue, 01 Sep 2020 04:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Sep 2020 04:28:55 +0000 Original-Received: from localhost ([127.0.0.1]:54494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCxue-0008A6-0c for submit@debbugs.gnu.org; Tue, 01 Sep 2020 00:28:55 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCs2T-0007OB-JL for submit@debbugs.gnu.org; Mon, 31 Aug 2020 18:12:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCs2S-000059-2c for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2020 18:12:32 -0400 Original-Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:34902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCs2Q-0007kw-6d for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2020 18:12:31 -0400 Original-Received: by mail-ej1-x642.google.com with SMTP id a26so10616151ejc.2 for ; Mon, 31 Aug 2020 15:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jimeh-me.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=fgR48o4eeczQNKLUWxNAN3/UL+NenyuPetq/tYeuXMM=; b=rSrzussM6BUAz0ifVrYSvkVJpXxzvIGMHP/Tq1Gdum12ritSfNhOCitnKZEXt4VJIT 96y+LlOcBVpr3seL8YPtSSlxxvZBRt3knmuSQhGoYRWkFBeTL4ybmovbPbN4iV/fVnm9 WKuqr+38HJhvMWM+I8W+xwNT90+nJ57/hLM95ylfycpF4EiPdZ2k6DEwKvWYw3njkbOB upEqGi9huxQwBV5KVwWxjzF6kMKVc77jbAB5yiBpLBLBhXT5YGTeBYfV9rImDFNc7WC6 SBVHeFWJ5W/kPyFyg/RCLWBBumu0uA42SBuz5kckTq0OVAt3eCU/aynGnNUG7K+A2uC1 RpHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fgR48o4eeczQNKLUWxNAN3/UL+NenyuPetq/tYeuXMM=; b=LnQnT5f3cIJkE2JfgXoR7LUwof9SLY9JMhz7Y8oaXG0kNEUFTx3By2weE52Adj5mgq vtRqLjuyQQqewz+3tnw5OX+s/g9ftjLfOFdOAH0WL8osDPSnX8uv4vYb6L4vCG4pAMAZ pa1liBIadME4dhYtJJe5UqBABWg5jYhjV/Q5vU6gX1//+Vh+fFz+F9IitUB40PHMF46u Fzn0rkjTGS3maO7fdu+uMvjD+QmC/qDv78e8m0yPzoMcvRLc/TtpCMs5a2crLAPgENI/ yAlXJTuqU0B+OEt95Ntb0NJ0sHSkLBHcVxQh9oNzcdmaaZ18NmEDCpdv71MShENqaxr2 KNzA== X-Gm-Message-State: AOAM531UuoJE+4k1cWtEaR3fgVCGazmBl9h/r6K8oW+hS7bJbsgISH+y F4u/pVjAEOaYTkYfCZ5OjpNLp4XOEYXc5+ftU81BKLLiT7nmQR0E X-Google-Smtp-Source: ABdhPJyHvwh601Pfmfh+Zp3I9WqXao5NY05MV/5RFGhcD4E+ElPzvxiYsgZyNIQKtjCfSXQXW66apROSi4tZwO/St5w= X-Received: by 2002:a17:906:8543:: with SMTP id h3mr2827635ejy.258.1598911947090; Mon, 31 Aug 2020 15:12:27 -0700 (PDT) Received-SPF: none client-ip=2a00:1450:4864:20::642; envelope-from=contact@jimeh.me; helo=mail-ej1-x642.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 01 Sep 2020 00:28:51 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:186814 Archived-At: Hi, I believe the fix for bug#43089 (commit 87b9c3e) has caused some issues with eval-after-load. For me at least smartparens' "(eval-after-load 'ruby-mode ...)" no longer fires if ruby-mode is loaded from a *.eln file. Trashing the cached "ruby-mode-*.eln" file before starting emacs, makes eval-after-load work again until next restart when the *.eln is in place again. I've nailed down the issue to commit 87b9c3e, as it does not occur with a build from the commit right before it (38b0ead). For reference, I'm on macOS 10.15.6 / GCC 10.2.0, and I build Emacs with a custom script: https://github.com/jimeh/build-emacs-for-macos To easily reproduce the issue I've stripped down my config to a hacky bare minimum config that reproduces the issue, available here: https://gist.github.com/jimeh/a7f2fe730f15baec9f8157fe46d1119b When first launching Emacs with the above config, opening a *.rb file loads smartparens-ruby through a "(eval-after-load 'ruby-mode ...)" in smartparens-config.el. Once everything has natively compiled and you restart emacs, the eval-after-load does not fire when opening a ruby file, and smartparens-ruby is not loaded when ruby-mode is loaded. And as I said at the top, deleting the cached ruby-mode-*.eln file resolves the issue and lets the eval-after-load hook run again, at least until you restart emacs with the *.eln in place. It also seems to matter if with-eval-after-load/eval-after-load is called from within a natively compiled file or not. Cause adding the snippet below to init.el which is not natively compiled, does fire the eval-after-load message but not with-eval-after-load. While within the natively compiled smartparens-config.el it does not fire eval-after-load. (with-eval-after-load 'ruby-mode (message "msg via with-eval-after-load ruby-mode")) (eval-after-load 'ruby-mode (message "msg via eval-after-load ruby-mode"))