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#60450: 30.0.50; Strange behavior of compiler macros in *scratch* Date: Mon, 08 May 2023 14:29:15 +0300 Message-ID: <83pm7bcb90.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29475"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60450@debbugs.gnu.org To: Lynn Winebarger , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 08 13:29:29 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 1pvz3Y-0007Sn-O7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 May 2023 13:29:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvz3B-0005Sc-5o; Mon, 08 May 2023 07:29: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 1pvz39-0005SA-DX for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 07:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pvz39-0004y7-5V for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 07:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvz38-0007Ln-IE for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 07:29: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: Mon, 08 May 2023 11:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60450 X-GNU-PR-Package: emacs Original-Received: via spool by 60450-submit@debbugs.gnu.org id=B60450.168354531028207 (code B ref 60450); Mon, 08 May 2023 11:29:02 +0000 Original-Received: (at 60450) by debbugs.gnu.org; 8 May 2023 11:28:30 +0000 Original-Received: from localhost ([127.0.0.1]:39441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvz2c-0007Kt-DL for submit@debbugs.gnu.org; Mon, 08 May 2023 07:28:30 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvz2a-0007Kf-LU for 60450@debbugs.gnu.org; Mon, 08 May 2023 07:28:29 -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 1pvz2U-0004ou-NE; Mon, 08 May 2023 07:28:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=tAUMccf3ZZL9BwWwDGttCxPBBLtrXkPzKFAcfRw93uM=; b=cm3wC/9vtXs2Qx+WM1qq 3F3xFnBEJMKZWUGAkg/sS2QOBnphIRFVKY5yvzoMUjIByCH51e72OBEVtzsFIdO/Ee7s0pjpueE7D nPboD2owcRIX6A8hWBWc3MaBDGBpVPztbADO7I4yp9PsYFj2sN89c83g5lmkOJ4TIlCX7RqKTc6fP +2nItMVG5RSGbYJHti30n4UHQVkxdi42FNpL83bR+IynRw5H3ErB5TGbT3EOleuGKErP1F5RZGMJm z/Qz4ZIWS82srxg3jvdGQRkSz4E9pWD7Cs+Qryo1IFKI0oWjrOteSCWyjwDAglimytwUD7MVE2rpI vNsSOj+75bL33g==; 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 1pvz2M-0004ON-0W; Mon, 08 May 2023 07:28:22 -0400 In-Reply-To: (message from Lynn Winebarger on Sun, 7 May 2023 21:59:51 -0400) 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:261306 Archived-At: > From: Lynn Winebarger > Date: Sun, 7 May 2023 21:59:51 -0400 > > I was going to open a feature request bug for a function to > specifically expand compiler-macros, but if the behavior reported here > is intended, then I don't really need to. > > However, if this is the intended behavior of macroexpand-all, it is > inconsistent with the documentation, which says: > > ‘macroexpand-all’ expands macros like ‘macroexpand’, but will look > for and expand all macros in FORM, not just at the top-level. If > no macros are expanded, the return value is ‘eq’ to FORM. > > But macroexpand is defined in C source code, and definitely *only* > expands function symbols whose value has a car of 'macro. > > Could someone determine if this is a bug in macroexpand-all (e.g. it > should be checking whether it is being called while byte-compiling), > or just a documentation bug? Adding Stefan.