From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#65017: 29.1; Byte compiler interaction with cl-lib function objects, removes symbol-function Date: Thu, 3 Aug 2023 18:22:30 +0000 Message-ID: References: <8B08E514-B2D5-48F5-BA90-4F5A9492F8F9@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 65017@debbugs.gnu.org, Eric Marsden To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 03 20:23:20 2023 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 1qRcyl-0008bx-Hl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Aug 2023 20:23:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRcyY-0004de-12; Thu, 03 Aug 2023 14:23:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRcyW-0004YW-5d for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 14:23:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRcyU-0004XP-Ia for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 14:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRcyU-0005LS-EA for bug-gnu-emacs@gnu.org; Thu, 03 Aug 2023 14:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Aug 2023 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65017 X-GNU-PR-Package: emacs Original-Received: via spool by 65017-submit@debbugs.gnu.org id=B65017.169108696120517 (code B ref 65017); Thu, 03 Aug 2023 18:23:02 +0000 Original-Received: (at 65017) by debbugs.gnu.org; 3 Aug 2023 18:22:41 +0000 Original-Received: from localhost ([127.0.0.1]:52907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRcy9-0005Kr-Fw for submit@debbugs.gnu.org; Thu, 03 Aug 2023 14:22:41 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:21254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRcy6-0005Kb-BH for 65017@debbugs.gnu.org; Thu, 03 Aug 2023 14:22:39 -0400 Original-Received: (qmail 40002 invoked by uid 3782); 3 Aug 2023 20:22:31 +0200 Original-Received: from acm.muc.de (p4fe157c8.dip0.t-ipconnect.de [79.225.87.200]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 03 Aug 2023 20:22:31 +0200 Original-Received: (qmail 25139 invoked by uid 1000); 3 Aug 2023 18:22:30 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266615 Archived-At: Hello, Stefan. On Thu, Aug 03, 2023 at 13:30:43 -0400, Stefan Monnier wrote: > > As I suggested in my other post, it might be a "simple" problem of cache > > invalidation. Why is the value from the first compilation hanging around > > until the second one? > That's a side problem. If absolutely needed, we could add some ad-hoc > invalidation to work around the core problem, but I'd rather fix the > core problem. Are you sure? What is the core problem? As I see it, if the function cl--labels-convert is called during byte compilation, cl--labels-convert-cache is going to get symbols with position. This is expected and is what we want - such a symbol might easily give the position element of an error occurring in expanded code. What we don't want is this symbol with position hanging around after the end of the byte compilation that gives it its context. If I understood your other, explaining, post right, cl--labels-convert-cache is only valid within a particular invocation of cl-flet or cl-labels. So why would it not be a complete bug fix to initialise this variable to nil at the start of every cl-flet or cl-labels? Or, more likely, bind the variable to nil, to allow it to function better in nested invocations of either of these macros? What am I missing, here? > Stefan -- Alan Mackenzie (Nuremberg, Germany).