From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65017: 29.1; Byte compiler interaction with cl-lib function objects, removes symbol-function Date: Fri, 04 Aug 2023 20:54:40 +0300 Message-ID: <83a5v6vgkf.fsf@gnu.org> References: <8B08E514-B2D5-48F5-BA90-4F5A9492F8F9@gmail.com> <83r0oivr7v.fsf@gnu.org> <83jzuavnm2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattias.engdegard@gmail.com, 65017@debbugs.gnu.org, monnier@iro.umontreal.ca, eric.marsden@risk-engineering.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 04 19:55:11 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 1qRz15-0006GG-7v for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Aug 2023 19:55:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRz0z-0004MS-GG; Fri, 04 Aug 2023 13:55:05 -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 1qRz0x-0004MF-0d for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 13:55:03 -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 1qRz0w-0004it-OA for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 13:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRz0w-0001Bh-K2 for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2023 13:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Aug 2023 17:55: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.16911716784528 (code B ref 65017); Fri, 04 Aug 2023 17:55:02 +0000 Original-Received: (at 65017) by debbugs.gnu.org; 4 Aug 2023 17:54:38 +0000 Original-Received: from localhost ([127.0.0.1]:54743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRz0X-0001Ax-KJ for submit@debbugs.gnu.org; Fri, 04 Aug 2023 13:54:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRz0V-0001Ai-AL for 65017@debbugs.gnu.org; Fri, 04 Aug 2023 13:54:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRz0O-0004Wl-KL; Fri, 04 Aug 2023 13:54:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=J5JVA1Hlm6xqSeFuQW5JJtwSF/Dor6v90/mLupeRDrs=; b=Iu0usueCoKLB dcRzIk2OwTvjaced3R7aQ51ZCp2pRUx1svBQJjYejSaZ38GSwws3PD3G2RkCOj9kwRfO4Ez0gJ9Yf dPeWiHUcegnP6EYcDBz5ieaqMNlnRxXA4F6X0wW8uOTPzOlqUolSPXbKR91v3E+CuiGheJRKsPWWm X/+FxfKhC2EtYULXTNUpgfUVZOpzQa+tBRkUI3MUbQaVYqF/8y0jLIECSkECjVeexSsXv1bU/N0He IUCmL41dJA7jplhRb1B9sUO2JMNtxt0+RHsjx+8IdTWd5ppyfHVkfsL/KmCFosVwd8Bm+rNvNr/qw LBhPqCGsGHOeSAJVwMvl5Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qRz0O-0001oS-4X; Fri, 04 Aug 2023 13:54:28 -0400 In-Reply-To: (message from Alan Mackenzie on Fri, 4 Aug 2023 16:43:12 +0000) 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:266702 Archived-At: > Date: Fri, 4 Aug 2023 16:43:12 +0000 > Cc: monnier@iro.umontreal.ca, mattias.engdegard@gmail.com, > 65017@debbugs.gnu.org, eric.marsden@risk-engineering.org > From: Alan Mackenzie > > > If internal-macroexpand-for-load is "verboten" from being called by > > the byte-compiler, I'd expect an assertion in it to that effect. > > Because someone, some day, might easily forget and call that function > > in the byte-compiler. > > I don't think there's any such prohibition in this case. The function is > called only from readevalloop in src/lread.c as part of loading a .el > file. It is probable that an eval-when-compile could cause a .el file to > be loaded during a byte compilation. This would call > internal-macroexpand-for-load with symbols-with-pos-enabled non-nil, I > think. But then, if the caller binds this variable non-nil, the problem will again rear its ugly head? > > > Do you think this should be firmed up to something like: "These objects > > > are for the use of the byte compiler, which records in them the position > > > of each symbol occurrence and uses those positions in warning and error > > > messages. They shouldn't normally be used otherwise."? > > > Something like that, perhaps even stronger. And maybe an explanation > > what kind of problems could using them outside of the byte compiler > > cause. > > OK. Maybe ".... They shouldn't normally be used otherwise. Doing so can > cause unexpected results with basic Emacs functions such as `eq' and > `equal'."? That's a good start, thanks.