GNU bug report logs - #60450
30.0.50; Strange behavior of compiler macros in *scratch*

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Sat, 31 Dec 2022 13:23:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 60450 <at> debbugs.gnu.org:


Received: (at 60450) by debbugs.gnu.org; 8 May 2023 11:28:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 08 07:28:30 2023
Received: from localhost ([127.0.0.1]:39441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pvz2c-0007Kt-DL
	for submit <at> debbugs.gnu.org; Mon, 08 May 2023 07:28:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44984)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pvz2a-0007Kf-LU
 for 60450 <at> debbugs.gnu.org; Mon, 08 May 2023 07:28:29 -0400
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 <eliz@HIDDEN>)
 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==;
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 <eliz@HIDDEN>)
 id 1pvz2M-0004ON-0W; Mon, 08 May 2023 07:28:22 -0400
Date: Mon, 08 May 2023 14:29:15 +0300
Message-Id: <83pm7bcb90.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lynn Winebarger <owinebar@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <CAM=F=bC36h5vRMnG=NAQOpsuGnitNCMznBvMM6=NBM1hMRidfQ@HIDDEN>
 (message from Lynn Winebarger on Sun, 7 May 2023 21:59:51 -0400)
Subject: Re: bug#60450: 30.0.50;
 Strange behavior of compiler macros in *scratch*
References: <d14aa519-69ce-b71e-4c07-6c654a28ab03@HIDDEN>
 <CAM=F=bC36h5vRMnG=NAQOpsuGnitNCMznBvMM6=NBM1hMRidfQ@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 60450
Cc: 60450 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Lynn Winebarger <owinebar@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#60450; Package emacs. Full text available.

Message received at 60450 <at> debbugs.gnu.org:


Received: (at 60450) by debbugs.gnu.org; 8 May 2023 02:00:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 07 22:00:11 2023
Received: from localhost ([127.0.0.1]:38716 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pvqAd-0006vg-EZ
	for submit <at> debbugs.gnu.org; Sun, 07 May 2023 22:00:11 -0400
Received: from mail-pl1-f177.google.com ([209.85.214.177]:55719)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <owinebar@HIDDEN>) id 1pvqAb-0006uD-MO
 for 60450 <at> debbugs.gnu.org; Sun, 07 May 2023 22:00:09 -0400
Received: by mail-pl1-f177.google.com with SMTP id
 d9443c01a7336-1aae5c2423dso39127345ad.3
 for <60450 <at> debbugs.gnu.org>; Sun, 07 May 2023 19:00:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1683511203; x=1686103203;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=nlyTvtE9F8Ldk9h0PRaNPa23u1IawM7ncpWYKyqa+Jk=;
 b=A+onp1WBoEyXbcUiRLC1RrDgO1QigmXg7uv138L9FGpWexveSSvK6ZpHphNBVdrNsu
 fUhv867GSbGbvwj07HhhiPXf9NAD8OlSJ4ipY1DazN0GzvTzPi3ykYKxrDqY+mF3xUq5
 UY0ZpnlKsh+K1igu3qJjDf2Hkmvu181yrrzaOB3LenYY3HRRdnCqniYwF+FHMom8xPBn
 0M3NEIIug/SvkdSw3dIP/HBveqtOAdNnPh8Q3y1V2kTfZmFst/yrMY2praCel+l8ARqt
 qb52YtkdOWMj8Q+56anveEUTsloYaTTYpWRtY1AB3UPdgd1N5Rl7nXDnERLB+aALDNnq
 /dIw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1683511203; x=1686103203;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=nlyTvtE9F8Ldk9h0PRaNPa23u1IawM7ncpWYKyqa+Jk=;
 b=QJiwu915Uh9WVaxxRVAZFSs8Tj9Rq/edEgJ8ydNQ+CexzOz9NQ3fyGsiMid/shiEfx
 f6NsNHrK9pIxjftORCRDh45A1uoiGi0dVmQ3LcCuXsaH7aDGJqMKBSJHbzrmBoHAiJ3s
 YwvKYH5XEkIkFMt0SxhMWRK0sOVLc5FDOE11vfYS2qSwpk3qL0ja1nHhC8aAg9S+1Hc4
 jyEBVgqT3BbpVWtjizUtFyd2wQgf9BmcAp1DZMPtcustr8avgg+K9eK/ws7+ModvJ4LZ
 SAoaxFlky23vMomB+7P1DJQsL+Z2kLmbLpGSqwb4LWNXtLW4VqRBbhk4yWB3A7PowiWR
 j0Fg==
X-Gm-Message-State: AC+VfDwp2weaNxq8XEe4CF/b4+Wbxf/T7u9hYJvZ15/7JiQJMOLa7Ny9
 28GG796FM1zKaIuydnOwymIThUqTzVfT9wIKYmXD10uD1Y4=
X-Google-Smtp-Source: ACHHUZ5bOkR31G6igfr//tyT5PwU41KYOGfqGDen7sbhfdef58f8C7kMU72jB88mpkI8aPIqi66eoaV+27fqROhywuE=
X-Received: by 2002:a17:902:e842:b0:1ab:17dc:d495 with SMTP id
 t2-20020a170902e84200b001ab17dcd495mr11002883plg.27.1683511203034; Sun, 07
 May 2023 19:00:03 -0700 (PDT)
MIME-Version: 1.0
From: Lynn Winebarger <owinebar@HIDDEN>
Date: Sun, 7 May 2023 21:59:51 -0400
Message-ID: <CAM=F=bC36h5vRMnG=NAQOpsuGnitNCMznBvMM6=NBM1hMRidfQ@HIDDEN>
Subject: Re: bug#60450: 30.0.50;
 Strange behavior of compiler macros in *scratch*
To: 60450 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 60450
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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:

     =E2=80=98macroexpand-all=E2=80=99 expands macros like =E2=80=98macroex=
pand=E2=80=99, 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 =E2=80=98eq=E2=80=99 to FO=
RM.

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?

Thanks,
Lynn




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#60450; Package emacs. Full text available.

Message received at 60450 <at> debbugs.gnu.org:


Received: (at 60450) by debbugs.gnu.org; 1 Jan 2023 06:34:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 01 01:34:42 2023
Received: from localhost ([127.0.0.1]:40197 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pBrve-0006LI-03
	for submit <at> debbugs.gnu.org; Sun, 01 Jan 2023 01:34:42 -0500
Received: from mail-wm1-f53.google.com ([209.85.128.53]:46757)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1pBrvb-0006L2-Gm
 for 60450 <at> debbugs.gnu.org; Sun, 01 Jan 2023 01:34:39 -0500
Received: by mail-wm1-f53.google.com with SMTP id
 m26-20020a05600c3b1a00b003d9811fcaafso11778999wms.5
 for <60450 <at> debbugs.gnu.org>; Sat, 31 Dec 2022 22:34:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to
 :content-language:user-agent:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=SNn1eyZYTvzl1/B19ctJVxqkdUiYwNLfuYVb3ej+wOg=;
 b=N7Lre/0WS5x1Ulx1Gok1y2E7vvZtbHLif72VUqR/qsspv/8kpxEFnKkyEDjlIBphSp
 CJxnbBaOIvhTQKS/6Ezl3AHPQb3MfgD/QfeqLWl9dYkrRVuMUDfF/lyhikQ5AHgHeiE7
 Hc2nJbkKRVhFGlkFJgNF8IA+bHToG2hI008nDzok+oOj5zSzDreXkGMVUnKXSZQOx7eO
 ZJLqcEZDIspiXxwZOjC0ljefGtcVpLDmrsKxeNKcM423EcOUQLNtXEgWxFZ9Pw1kpr4Z
 v09qk6FG6ZSJrPrufB9TPF52+uAilAtd4Z5I0jL7+NPeKCRau+KgAWA/AHlm7ENTvCf1
 fJ+g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to
 :content-language:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=SNn1eyZYTvzl1/B19ctJVxqkdUiYwNLfuYVb3ej+wOg=;
 b=CvvTqG2eMPSotzp2tHhCSDD5QN9BGLdZ+hS9Th064P/3kpHPWhIY33LzGmzqzf5ADG
 7dO6ikRg9uGDeqFvUFwynUjHYq1J6HCqxJbjanpLihGMHh9Mdk5zDRstXqpPUDMMSgwf
 lEm542zDv14jQEAIpGEN2oOjarZRDEifbv8X9fwLih2ws7zvbAM07FUAj4h/Gkp9/Pzk
 9LyiIhbuOe61vF9BmeAFgtlT2CdACxsJEj2xAg9hK6utPGJYLH06WzLGh0XnNUbIlLiC
 55zKmKKbAZJTHNVg6HRkoBjtWVBcHKZArNx37UW0bF7HTIIzlgpJGCSKEAKmp4sgzqnh
 SZcA==
X-Gm-Message-State: AFqh2koOB9/0+9DWU+SAJ8QS0vRHcY3yJN3sqw0wRos415/supPL51PZ
 GtDwdIodbbIduQXstgKunP8=
X-Google-Smtp-Source: AMrXdXvq+auFo6X5iWhkg0MLMEMHnSwGq/LHpODmI/HmWM3KzzO9/y9otjjSOG30T0kT19LYiWiofg==
X-Received: by 2002:a05:600c:a0f:b0:3cf:7704:50ce with SMTP id
 z15-20020a05600c0a0f00b003cf770450cemr26734305wmp.38.1672554873381; 
 Sat, 31 Dec 2022 22:34:33 -0800 (PST)
Received: from [192.168.178.21] (pd9e36237.dip0.t-ipconnect.de.
 [217.227.98.55]) by smtp.gmail.com with ESMTPSA id
 p3-20020a05600c358300b003d973e939d3sm30589908wmq.1.2022.12.31.22.34.31
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 31 Dec 2022 22:34:32 -0800 (PST)
Message-ID: <21991eb7-e86f-58b3-32a9-3abc2c417aac@HIDDEN>
Date: Sun, 1 Jan 2023 07:34:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
 Gecko/20100101 Thunderbird/102.5.1
Content-Language: en-US
To: Andreas Schwab <schwab@HIDDEN>
References: <d14aa519-69ce-b71e-4c07-6c654a28ab03@HIDDEN>
 <871qofeisl.fsf@HIDDEN>
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#60450: 30.0.50; Strange behavior of compiler macros in
 *scratch*
In-Reply-To: <871qofeisl.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 60450
Cc: 60450 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

On 31.12.22 15:42, Andreas Schwab wrote:
> On Dez 31 2022, Gerd Möllmann wrote:
> 
>> C-j is bound to eval-print-last-sexp, which I wouldn't expect to compile
>> anything, and its doc string doesn't mention anything AFAICS.  Not sure if
>> that's a bug in the code or something missing in the docs.
> 
> eval-print-last-sexp uses macroexpand-all.
> 
> (macroexpand-all '(foo)) => 1
> 

Right.  And macroexpand-all seems to be closely tied to the compiler, or 
the other way round, depending on one's perspective.  I personally find 
that behavior a bit surprising, but that's just me.  If someone wants to 
close this bug, please do.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#60450; Package emacs. Full text available.

Message received at 60450 <at> debbugs.gnu.org:


Received: (at 60450) by debbugs.gnu.org; 31 Dec 2022 14:42:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 31 09:42:39 2022
Received: from localhost ([127.0.0.1]:36877 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pBd4I-0003eA-Q7
	for submit <at> debbugs.gnu.org; Sat, 31 Dec 2022 09:42:39 -0500
Received: from mail-out.m-online.net ([212.18.0.10]:45747)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1pBd4H-0003e0-1b
 for 60450 <at> debbugs.gnu.org; Sat, 31 Dec 2022 09:42:37 -0500
Received: from frontend03.mail.m-online.net (unknown [192.168.6.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4NklGM4ZHyz1s94h;
 Sat, 31 Dec 2022 15:42:35 +0100 (CET)
Received: from localhost (dynscan3.mnet-online.de [192.168.6.84])
 by mail.m-online.net (Postfix) with ESMTP id 4NklGM294nz1qqlS;
 Sat, 31 Dec 2022 15:42:35 +0100 (CET)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new,
 port 10024)
 with ESMTP id VVC1c5OFh7RL; Sat, 31 Dec 2022 15:42:34 +0100 (CET)
X-Auth-Info: iDhDwBkH+3e+0Duyad98MeDqf3wRdclQvwug+hmia1TgcbvIJkrnfOKcXis4U1aR
Received: from igel.home (aftr-62-216-205-97.dynamic.mnet-online.de
 [62.216.205.97])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Sat, 31 Dec 2022 15:42:34 +0100 (CET)
Received: by igel.home (Postfix, from userid 1000)
 id 2DBCD2C141E; Sat, 31 Dec 2022 15:42:34 +0100 (CET)
From: Andreas Schwab <schwab@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#60450: 30.0.50; Strange behavior of compiler macros in
 *scratch*
References: <d14aa519-69ce-b71e-4c07-6c654a28ab03@HIDDEN>
X-Yow: I'm having a tax-deductible experience!  I need an energy crunch!!
Date: Sat, 31 Dec 2022 15:42:34 +0100
In-Reply-To: <d14aa519-69ce-b71e-4c07-6c654a28ab03@HIDDEN> ("Gerd
 =?utf-8?Q?M=C3=B6llmann=22's?= message of "Sat, 31 Dec 2022 14:22:31
 +0100")
Message-ID: <871qofeisl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.4 (/)
X-Debbugs-Envelope-To: 60450
Cc: 60450 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

On Dez 31 2022, Gerd Möllmann wrote:

> C-j is bound to eval-print-last-sexp, which I wouldn't expect to compile
> anything, and its doc string doesn't mention anything AFAICS.  Not sure if
> that's a bug in the code or something missing in the docs.

eval-print-last-sexp uses macroexpand-all.

(macroexpand-all '(foo)) => 1

-- 
Andreas Schwab, schwab@HIDDEN
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#60450; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Dec 2022 13:22:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 31 08:22:42 2022
Received: from localhost ([127.0.0.1]:36771 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pBbot-0007NE-4S
	for submit <at> debbugs.gnu.org; Sat, 31 Dec 2022 08:22:42 -0500
Received: from lists.gnu.org ([209.51.188.17]:37528)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1pBbor-0007N5-PS
 for submit <at> debbugs.gnu.org; Sat, 31 Dec 2022 08:22:38 -0500
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 <gerd.moellmann@HIDDEN>)
 id 1pBbor-00014I-J3
 for bug-gnu-emacs@HIDDEN; Sat, 31 Dec 2022 08:22:37 -0500
Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1pBboq-000807-5m
 for bug-gnu-emacs@HIDDEN; Sat, 31 Dec 2022 08:22:37 -0500
Received: by mail-wr1-x430.google.com with SMTP id t15so13546616wro.9
 for <bug-gnu-emacs@HIDDEN>; Sat, 31 Dec 2022 05:22:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=NWGRho9/+EMiktdBN3IETMpzH3/uEyQcIjSkKYHpJ3c=;
 b=VzjLL2sIf4rtTpgQd3PZBZq6ENMnlGyhvUIV+hcTXkPtsRdCrYNuzd4r/TSvlbwFD1
 2zAraXL86bCQ1axKK5hyX/KeYHBIt5Kkt+dY4ozWlXsoExW4F/SyTbs4D4GRwChJxhY+
 +3eTecpynbhrrTCl4a69kCpYUaeLxbjCuM13ItHzsKFbiA5CH+vdYqgRGXTpxCxr7hUb
 uOaJ1Xc9RxK+TLHa++rQc8wfNh/X6E2CcaELxIDupWj4nHgI3+OxXHo8jxawP9SBVnx7
 ezDhXNIl2TQQIb3aIROL9DWGHIeDcUCeNNu7Poc9aqa6gYG66RLzb/DaIBZU+WNyHX0/
 PsHA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:subject:from:to:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=NWGRho9/+EMiktdBN3IETMpzH3/uEyQcIjSkKYHpJ3c=;
 b=tsstUSU7aLeDhhj+WjAZi1o14GlYRCy1ycXGUED9GDYO87anFf2Lt7LR9S630CgczP
 o7uObJcUINSQV3sYmZI98OIm7FNuotFpXp3Y9KtH8frR+IUlzXfdLwgadjFugYu2EKZg
 aqqKo/4CRElg7OmWeXdWe7JUD8ulEKJ+0vewmYdJXlqlqpBJAwpMKdtO0D5jtkY/1oC4
 ZXn+sVMrvyChcD5IhGD8lfffeCb9rAUOngyIHcuR1+k1AOJ+680Gl4u9G70yXXhFEa0a
 vOqAvsj/AdVrKbiqwfD7mrWli8fqXPIScipHPvFKRwiU+2GZ7BKUpyBikLlk1qe69tnr
 JNYQ==
X-Gm-Message-State: AFqh2kqsQLBmt0PecRf9lQNL0YTooIWRPZua3K/87tV9imdCJdKiv+Ia
 iStmULlRknHLiPiIi531LUZEQkm5m3pRVA==
X-Google-Smtp-Source: AMrXdXs4ZBJjtPiu6vQF0/b4nqPnLH3Yad/mQONQx+yEl4BJoisaFtOgS2cMsuXXXWdRh+I0PmDXAQ==
X-Received: by 2002:adf:cd8c:0:b0:271:dd0c:866b with SMTP id
 q12-20020adfcd8c000000b00271dd0c866bmr17889029wrj.1.1672492954392; 
 Sat, 31 Dec 2022 05:22:34 -0800 (PST)
Received: from [192.168.178.21] (p4fe3a97d.dip0.t-ipconnect.de.
 [79.227.169.125]) by smtp.gmail.com with ESMTPSA id
 t15-20020a5d534f000000b002365254ea42sm23417864wrv.1.2022.12.31.05.22.32
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 31 Dec 2022 05:22:33 -0800 (PST)
Message-ID: <d14aa519-69ce-b71e-4c07-6c654a28ab03@HIDDEN>
Date: Sat, 31 Dec 2022 14:22:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
 Gecko/20100101 Thunderbird/102.5.1
Content-Language: en-US
To: bug-gnu-emacs@HIDDEN
From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
Subject: 30.0.50; Strange behavior of compiler macros in *scratch*
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::430;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-wr1-x430.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-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

The doc string of cl-define-compiler-macro says

   "This is like ‘defmacro’, but macro expansion occurs only if the call 
to FUNC is compiled (i.e., not interpreted)."

Evaluate the following compiler macro and function in *scratch*:

(cl-define-compiler-macro foo ()
   1)

(defun foo ()
   2)

Then:

(eval '(foo))
   => 2

(foo)C-j
   => 1

C-j is bound to eval-print-last-sexp, which I wouldn't expect to compile 
anything, and its doc string doesn't mention anything AFAICS.  Not sure 
if that's a bug in the code or something missing in the docs.






Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#60450; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 8 May 2023 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.