From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Ihor Radchenko 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, 23 May 2020 23:23:59 +0800 Message-ID: <877dx2llo0.fsf@localhost> References: <87zhb0q8wi.fsf@localhost> <87lfmidexg.fsf@localhost> <87mu6v4qss.fsf@localhost> <87wo592rne.fsf@localhost> <87o8qk39o5.fsf@localhost> <878shi3fkd.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="76059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40838@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 23 17:29:10 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 1jcW5F-000Jd2-CA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 17:29:09 +0200 Original-Received: from localhost ([::1]:52894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcW5E-0001d2-Eh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 11:29:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcW58-0001aj-K6 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 11:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52015) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcW58-0001w9-AE for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcW58-0007jm-79 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2020 15:29:02 +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.159024772529716 (code B ref 40838); Sat, 23 May 2020 15:29:02 +0000 Original-Received: (at 40838) by debbugs.gnu.org; 23 May 2020 15:28:45 +0000 Original-Received: from localhost ([127.0.0.1]:35328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcW4q-0007jE-VS for submit@debbugs.gnu.org; Sat, 23 May 2020 11:28:45 -0400 Original-Received: from mail-pl1-f170.google.com ([209.85.214.170]:45680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcW4p-0007iz-5F for 40838@debbugs.gnu.org; Sat, 23 May 2020 11:28:44 -0400 Original-Received: by mail-pl1-f170.google.com with SMTP id u22so5595116plq.12 for <40838@debbugs.gnu.org>; Sat, 23 May 2020 08:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=C5DMEgftdLlHjMQamKTLXPkNIMlsToXll3OYBd2VfAg=; b=RjO52GaKKd7wLXDesShuE/gPqY0j84Asg88GU/j/DbrXYK+DsUXUuwsH843TNMf+E6 2LMS8Rm5cMwwdeIs3utspCLS/OxugKowADOn4Nv2/RbqNJx7joaKej99+Zyqyay9A1fG LpCNmo5CE39h+3i7wx0Y5ynat6AXAKKJapNUIru1g8NCsIIUdaowklarY6ZZLW3QYlJc z/y3NNUchcX/P4JLHpBW+XWuEZpczU4BtLTsGkDmDiNTJ9MdWItKiYhVT37fnk0+48z1 5XGq8Ltmk92wEjzf3YC1nXDbVFL0FjdvKQc8szE6TR8UHH6/5vyMKgCg7vhWW6Rir4Xh KPMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=C5DMEgftdLlHjMQamKTLXPkNIMlsToXll3OYBd2VfAg=; b=oWiWoTwLJKhiBXm/9BTKJcDEsdHhvD1n1P2BbRSremuE99q3YYMiw0tn9M0VAan06b PMnz7aQTAelXxNmqZP/fj7aBquGGi8CRbE0halptcyLsD96uPi801Wz8PsgksW6fq4WZ Fk6IGAS0ubBNFP6U/En54Y3ppBQazwcKRl0uLOrQVqe+wNdYImnFH39eU2AfIE4CaO5u 1HDnguhyR3kO6LZ5Imrq9bUKKbqZlm8g6VsfcNbQ9hDM8y3t3iNVwSygk7b1ck+6sf3d WvVd4/sUIFLBXvF9d5AJIAzyP8T1vaf+IA8v8BRcNt616cr7L8XVUZ+BDxqNRABHzoEf E5aQ== X-Gm-Message-State: AOAM532/e3cDO32WhHeyETuDR18wYNSAgk7/E8wm0IOy7Crjly1BpZNT guHTt0y5JhiaSYVhZEpL3SI= X-Google-Smtp-Source: ABdhPJyaicX1+P4I3fZOd3RVlcYJQJv/Y+hbWZS+4NOWVCqgvyRGEIAb/jzy7Nc9koxUJdhe37hXyA== X-Received: by 2002:a17:90a:d70a:: with SMTP id y10mr10916008pju.53.1590247717184; Sat, 23 May 2020 08:28:37 -0700 (PDT) Original-Received: from localhost ([104.151.6.52]) by smtp.gmail.com with ESMTPSA id f136sm9040726pfa.59.2020.05.23.08.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 May 2020 08:28:36 -0700 (PDT) In-Reply-To: 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:180813 Archived-At: > I believe if you want to have to workaround effective in deferred > compilation you'll need to put the definition of these two functions > into `comp-async-env-modifier-form' as discussed. > > Perhaps the best thing if to ask them to do it given they have a branch > to support native-comp. Never mind my last email. I thought that defun statements before require should not be overridden, which is obviously wrong. Best, Ihor Andrea Corallo writes: > Ihor Radchenko writes: > >>> If this is what is happening with straight.el, then my recipe is not >>> actually reproducing my initial bug report. I have other cases when >>> functions redefined in my config are overridden by initial definition >>> when .eln is loaded. I think that I still need to investigate for a real >>> recipe then. >> >> I have recently tried to find a temporary workaround to this issue with >> straight.el+org+native-comp. However, my workaround seems to fail >> because of native-comp (at least, I believe so). > > Hi Ihor, > > I believe if you want to have to workaround effective in deferred > compilation you'll need to put the definition of these two functions > into `comp-async-env-modifier-form' as discussed. > > Perhaps the best thing if to ask them to do it given they have a branch > to support native-comp. > > Andrea > > -- > akrl@sdf.org -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg