From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.devel Subject: Re: Has eval-and-compile changed in emacs 27? Date: Fri, 26 Feb 2021 10:40:12 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5754"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (macOS 10.14.6) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 26 03:41:37 2021 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 1lFT4R-0001Oa-4o for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Feb 2021 03:41:35 +0100 Original-Received: from localhost ([::1]:39322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFT4Q-0001Pr-7L for ged-emacs-devel@m.gmane-mx.org; Thu, 25 Feb 2021 21:41:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFT3E-0000tC-0e for emacs-devel@gnu.org; Thu, 25 Feb 2021 21:40:20 -0500 Original-Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]:45757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFT3C-0007y9-4c for emacs-devel@gnu.org; Thu, 25 Feb 2021 21:40:19 -0500 Original-Received: by mail-pl1-x632.google.com with SMTP id w18so4490693plc.12 for ; Thu, 25 Feb 2021 18:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version; bh=i3+Mvr6k/S09qh5b/zvpgOuwDzuPp2jw3fKOXlaLfA0=; b=ENXj/H9C8frvNR9XViXwGivNJ7CeVSb+4Jon0B6lBZ7H/P0VxNsxpXNmOK6n8z8K6K fnBXhy1HZh4vZE74fWqx+w0YqJHtet5y0uXMbb4gZ+Jq4+HRiE6gU2JHPanAE4uqBa2e YrvkK3pcAKfWlsL7wzAPwUi9Ja4cOrajlnvOP0edKxrhW0m/OatQwInKPMNYXAnTRbsK qd7h/BroXOZxlz9d5rXk+wE/4gFN7ih7JOqx0fOIVxhUFCVDbtGz5IOFRnM+v4Ls42r/ 0waxJ9VQW/wPRVgsoiBH2uXl0gw5S9USFWtOxqzvhLO3pUWQW+UZT5RmIz4gjSxDzbhZ geCA== 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:references:face:date :in-reply-to:message-id:user-agent:mime-version; bh=i3+Mvr6k/S09qh5b/zvpgOuwDzuPp2jw3fKOXlaLfA0=; b=KAooIyYi372sjBVOI+UEQ50LkBT7QgEiHcBwZKSP882WHcUezA1TPntDCIe+F7YPgP AigTWbjjGfG0IQfQHAlr5TvvfuuIt+K3D+Fm9xgisjHWYZrdY8D3I50rsSHoVJfAcO1k ikrmp1w+kw0Ri9Mwrpby+MAmDxJ43n3D78CohsdXbeJoPvLX3oWEAbZ/O2bOpl5oow+I GQA3ntUtAgj/U4sS5v7gy+2UG0aFgt9Ymi6T0TP20CTBWF+ZAU8vstDkk0CEjx16ZDM5 17kXi9EuW6y+FbEvtu50MW3mmAMD+aSdvqfRl8VTXilXGpgTh8vAoGAMNswYlyOdRQkK mrkA== X-Gm-Message-State: AOAM531kPjeQ/P7QcGSCR91kKRHIYHhEsyPiYoneid2qafbUTSNY51xc FjUibDqO81m7noST8F3wMUx6vzZN7k8= X-Google-Smtp-Source: ABdhPJx6CrgpXEqmy1x3pSkm6wlt0X/G+HZqdV65oDiKCoTCsyrZpEJbtQ7BtlMzhATpOrGN11ottw== X-Received: by 2002:a17:90a:eac3:: with SMTP id ev3mr1051724pjb.120.1614307215883; Thu, 25 Feb 2021 18:40:15 -0800 (PST) Original-Received: from Zeuss-MacBook-Air.local ([112.211.1.191]) by smtp.gmail.com with ESMTPSA id e15sm7608950pfl.59.2021.02.25.18.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 18:40:15 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAMFBMVEUaFRZLMy1dTENxVzKQ WiCrXQ97cmO/dSqSh3akjGTApXy5sJ7Sxo/Sz8Xo6eP9//xJbkruAAAAAWJLR0QAiAUdSAAAAAlw SFlzAAACxQAAAsUBidZ/7wAAAAd0SU1FB9cBBwMJOwHXewoAAAIBSURBVCjPVdNBiNNAFADQ6J4F x3hThHZBBC+WCFI8SS0iezRDcMHLHkLAg6gJH/fgYQ9xYlj2sLK4KHgqCgXFhda2Idmr4kkQPZQ0 nkQMbTypbMmMM2m7ZgYSmMef/5OZPwo7HFnx3uKPcmj0Dht1LWZJ+Hvr7dIFZXRUwl9VRTuuKDJ+ U44gjscknK4hhJaCkYRsWjmBtLqXlJAG2wipNe18OZJu1BBq1E8xafl4s6Jq2mUZGftU1y7CCxnp FVUDWJXx4C66BKBnErbuoaYNtoRTu6EZBsCbMn7W+5qOAR6WvxNOby9jHWC9hAf3n304CdiAByXs 3Nh9roLDkyb/sWV712vYwaLSAn8CPMHIAAzOPDKP2COAFm4Y4ODVWc6xG7KXsN7UeUJjjimx2uwd gCgNhr0i8C/xyCD5CiCKAMY3Bf5oDzx//w/fimscdcAZU2jv9sedx6+nYPPFIoWI/GK6QZ+EFGOR ErAjCnV3vPZ7XqlTIMbOLY7fLcvvmT7rXNWaGDexIY44N12TG2PDp7vqyl57dnCeuWwyNpnEURxk fTbDYeBnKRn4oejPYI4sH6WviBumEZ/GxX4X/x6EcURFZ7E071bjQGAxpcOAEOJuTiroDEea5Szv rVWLYfl7ZiQwSUToxrkux7OLixAWGz22+HIyWTRYcVfomOwvzusfjtVIGgLHf3MAAAAASUVORK5C YII= In-Reply-To: (Stefan Monnier's message of "Thu, 25 Feb 2021 17:29:37 -0500") Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=sdl.web@gmail.com; helo=mail-pl1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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:265656 Archived-At: On 2021-02-25 17:29 -0500, Stefan Monnier wrote: > That one's easy: the way the warning works is that when we process > a `eval-when-compile` we look at the `load-history` to see the functions > that have been defined during execution of its body, and then we remember > those as "only available now but maybe not at runtime". > > If that loaded `cl-lib`, then a subsequent (require 'cl-lib) will be > a no-op and won't "unremember" the corresponding functions. This sounds like nightmare :( Is this new in Emacs 27? What prompted the change? I think when managing dependencies I want to be able to look locally at what I put in a elisp file and be done with it. The new behaviour means I also need to chase dependencies and their dependencies... Another point is subsequent (require 'cl-lib) provides stronger guarantee but is ignored which produces spurious warnings.