From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!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: Tue, 28 Jul 2020 17:06:03 +0800 Message-ID: <87sgdcj9fo.fsf@localhost> References: <87zhb0q8wi.fsf@localhost> <87lfmidexg.fsf@localhost> <87mu6v4qss.fsf@localhost> <87wo592rne.fsf@localhost> <87o8qk39o5.fsf@localhost> <878shi3fkd.fsf@localhost> <877dx2llo0.fsf@localhost> <87zh7ltgc7.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35361"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 40838-done@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 28 11:07: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 1k0LZm-00095d-Ld for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jul 2020 11:07:10 +0200 Original-Received: from localhost ([::1]:44360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0LZl-0004hg-Jt for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Jul 2020 05:07:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0LZe-0004gX-DH for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 05:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0LZe-0006Ee-4X for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 05:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k0LZd-0004Fz-Vd for bug-gnu-emacs@gnu.org; Tue, 28 Jul 2020 05:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Jul 2020 09:07: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-done@debbugs.gnu.org id=D40838.159592721216347 (code D ref 40838); Tue, 28 Jul 2020 09:07:01 +0000 Original-Received: (at 40838-done) by debbugs.gnu.org; 28 Jul 2020 09:06:52 +0000 Original-Received: from localhost ([127.0.0.1]:57232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0LZT-0004Fb-Rl for submit@debbugs.gnu.org; Tue, 28 Jul 2020 05:06:52 -0400 Original-Received: from mail-qk1-f174.google.com ([209.85.222.174]:33196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0LZR-0004FO-CY for 40838-done@debbugs.gnu.org; Tue, 28 Jul 2020 05:06:50 -0400 Original-Received: by mail-qk1-f174.google.com with SMTP id l23so17996091qkk.0 for <40838-done@debbugs.gnu.org>; Tue, 28 Jul 2020 02:06:49 -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=rwML4JpaDbvlXAGaNvakuptQqSoxImeHi0ZTrCE32T8=; b=hy5n+S89W83F6D8dS0a0pa8UeVJ/tXnQSzKGI7M1XJFxEh722lHS9o2qBFY71Lmir5 5pSYGk8x7A5biQmwi0KdmQKxRZhC4UzOu6G2kny4rcjgrvjZUA1KiC9kMq+IBGuqPNPW ZdY5H9lclbSdvsLo2pZrkku5uHvMHhI9/vx/uYo13+ob8ntKX1hSLWEcvkGk/K3hpQBF z3bhmZb3xDXxA4MFU9nV6vL4S7PnD0XrJP8vbGgxTWWL0iumGbZd8a5HxEwd6k1+0ORE K8ZuRYBRucsjzPfm1JCOVLu70jXLof+WYiAAjWhpRaevDfpi5QQp2FBl7btI3GZNRJuu YWGQ== 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=rwML4JpaDbvlXAGaNvakuptQqSoxImeHi0ZTrCE32T8=; b=GFX7j6US+2QIVD/53HX99dgpa96gkwOFyYcTJf/+MKSeaDB10TiT4z/MfL6Ru5mJqn aGEdk/4OMtIdZDhnT6nRWp/WP2UfSyBZ4nMF72tMo4iRz7mkcLn6x4Xs1CljPepI8ilg fWGa5is5KylMea2jxGNqHSUN0GOhyAFvCnjXkbt+BTrTdXUUc4TMVL0LuZ47uUOLCaL1 wr/RFvcpwaFhfNR44/rwtFySBZoA60X2dp9Q29Jg42Saq3TvVzUH6mPquFtJH/lY77Fg 75NgrwuMspvoGvLbGtzm6raSkIOAkDex/CwReebKgjcSxtkhuqCL1IQ8kmqCpnuVzlP9 02Yw== X-Gm-Message-State: AOAM53122gVN9Lyp3laYfEucmMMGjoq/7wjIKAOWyxLh7UV7cd2eiQVI fioCfzGs5HTW5W6m7uuA6XQ= X-Google-Smtp-Source: ABdhPJwJX0ttOHEkvDws/8f1iZkyha/YC4Fo3hKHKAf0oErOu9KfbSadHf66erP8syRV/O/SEK4vXw== X-Received: by 2002:a37:8f07:: with SMTP id r7mr5330122qkd.480.1595927203720; Tue, 28 Jul 2020 02:06:43 -0700 (PDT) Original-Received: from localhost ([208.167.241.222]) by smtp.gmail.com with ESMTPSA id k56sm19185410qtk.61.2020.07.28.02.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 02:06:42 -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:183618 Archived-At: > That said this is an area I plan to fix to have it 100% compatible with > the vanilla implementaiton once I'm done with moving all the eln file. Great! > My understanding was that the issue reported in this bug was not advise > related but it could be also a side effect of? Some of the broken functions were "redefined" with :around advice or using el-patch. Though el-patch is working with function slots directly, as I understand. FYI, I do not encounter the original bug as often on the latest master. What I noticed is that it also tends to happen when I change original source code of the native-compiled functions and eval-sexp the new versions. Best, Ihor Andrea Corallo writes: > Ihor Radchenko writes: > >> Reopen. >> >> I think I found something related to this bug report in >> exlplain-pause-mode package. See >> https://github.com/lastquestion/explain-pause-mode/issues/65 for >> details. >> >> best, >> Ihor > > Hi Ihor, > > thanks for the finding. > > native-comp does not support advises to (most) primitive functions for > performance reasons. The elisp manual strongly discourage this practice > tho. > > The issue can be worked around adding those functions into the > `comp-never-optimize-functions' customize. > > That said this is an area I plan to fix to have it 100% compatible with > the vanilla implementaiton once I'm done with moving all the eln file. > > My understanding was that the issue reported in this bug was not advise > related but it could be also a side effect of? > > Regards > > 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