GNU bug report logs - #42691
28.0.50; eval-and-compile

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: Helmut Eller <eller.helmut@HIDDEN>; dated Mon, 3 Aug 2020 07:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 13:16:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 03 09:16:40 2020
Received: from localhost ([127.0.0.1]:44628 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k2aKW-0002i3-76
	for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 09:16:40 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:53798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1k2aKS-0002hs-Uh
 for 42691 <at> debbugs.gnu.org; Mon, 03 Aug 2020 09:16:38 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4BKz1H0tsWz1qrfc;
 Mon,  3 Aug 2020 15:16:34 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 4BKz1G6GFfz1qrgS;
 Mon,  3 Aug 2020 15:16:34 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id YIgoHppzetWi; Mon,  3 Aug 2020 15:16:34 +0200 (CEST)
X-Auth-Info: BGY83J1iMmErV0rUZ3SpAjQv4n03By8L5RdIM1U1t740TCbdHJ227b9a95F+FbOD
Received: from igel.home (ppp-46-244-160-167.dynamic.mnet-online.de
 [46.244.160.167])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Mon,  3 Aug 2020 15:16:34 +0200 (CEST)
Received: by igel.home (Postfix, from userid 1000)
 id 9B2652C0A6B; Mon,  3 Aug 2020 15:16:33 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Helmut Eller <eller.helmut@HIDDEN>
Subject: Re: bug#42691: 28.0.50; eval-and-compile
References: <m24kpkkvq7.fsf@HIDDEN> <87bljsqdqq.fsf@HIDDEN>
 <m2sgd4kosc.fsf@HIDDEN> <87v9i0os07.fsf@HIDDEN>
 <m2imdzlwhc.fsf@HIDDEN>
X-Yow: When you said ``HEAVILY FORESTED'' it reminded me of an overdue
 CLEANING BILL..  Don't you SEE?  O'Grogan SWALLOWED a VALUABLE
 COIN COLLECTION and HAD to murder the ONLY MAN who KNEW!!
Date: Mon, 03 Aug 2020 15:16:33 +0200
In-Reply-To: <m2imdzlwhc.fsf@HIDDEN> (Helmut Eller's message of "Mon, 03
 Aug 2020 14:55:43 +0200")
Message-ID: <87o8nrq37y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 42691
Cc: 42691 <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.7 (-)

On Aug 03 2020, Helmut Eller wrote:

> So you are arguing, that the body should be evaluated and macro-expanded
> in the null environment.

No, I don't.

Andreas.

-- 
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#42691; Package emacs. Full text available.

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


Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 12:55:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 03 08:55:54 2020
Received: from localhost ([127.0.0.1]:44614 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k2a0Q-0002CP-JX
	for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 08:55:54 -0400
Received: from mail-ed1-f44.google.com ([209.85.208.44]:46729)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eller.helmut@HIDDEN>) id 1k2a0N-0002CA-4J
 for 42691 <at> debbugs.gnu.org; Mon, 03 Aug 2020 08:55:52 -0400
Received: by mail-ed1-f44.google.com with SMTP id q4so23910121edv.13
 for <42691 <at> debbugs.gnu.org>; Mon, 03 Aug 2020 05:55:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=Tt+CUYTchsWPSxYMEY37wKYBjD0lNSqESPzWRTkLr/w=;
 b=CNlINS0r422FhJ4dVOlkZLz5TDW8i6k5zvpVGWcPaC9l/+g+bvS1XBeE8oaHQEntl3
 FBOind57OEtfdPKD7UMZrITq8bKPrdDXvZnH/OjHtnM5Zz/I7eV+qBIv1/RJ8k07SNW5
 mt1Gs2fW25bpZFcNanaOR2vxUq4zXUrx6PK/RH7SN+gjMNjE9UxmjOqH4Lx1IpgIffOr
 M2jwL3nt0Hrw8F532QBwBF8+I3xMRO+SCKqERZGKMHgN4+tVHPOBvS+lnUVQ0k6Hdf11
 3xYw1eHdiyUC/7l/2muY+uiIFDqjcARYvgTqFpggXzyRhpY8NP3w6j+VVBmjvf7h6Fci
 FJYw==
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:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=Tt+CUYTchsWPSxYMEY37wKYBjD0lNSqESPzWRTkLr/w=;
 b=GSC811Vb6uuTKu432ZEji7gOZHKpuK2SX0S1BASZxVCrl6p851Nev2KhxZXTsDcgs9
 Uft76kcKbOrgZaJ0XjQhnloyMEN6NJFPtEg9pul/rzG8mMzkybyYpYZh9BVRK1t5oVY4
 Dl6ygOjGifeo1HkEgWT/06/S0OZBeyVLZZG/PFA/ETk5+7g4bLkL7IcH5t34WA0ffM+6
 TZP8rShrtUQu1kGXW7uSj6/5/1skUmgx92XjghtG6r+Ertxc+HbAhWNFM6fzn93OhJBl
 /bVLTpIYVox0HAS021v3gD6H0si8qj9QL7BQIzVqPVadbJzqZ0yVJLOLp8GD17EEt0qR
 2Avw==
X-Gm-Message-State: AOAM531rBpcTTjUMXk2rlBXImxKcpf7SpxVb3VMayNjswQoVi9sKvtPM
 agI+2ojTpwZBvgrUbC3N7/JjonJw
X-Google-Smtp-Source: ABdhPJx+7CVT/fnJuMgDwQG9+SUOwEo5ZzayLn3XNB9Zjk8H8dz79rYVksXH587vhpDuiLYkYFkqhw==
X-Received: by 2002:aa7:c30b:: with SMTP id l11mr15608535edq.253.1596459344842; 
 Mon, 03 Aug 2020 05:55:44 -0700 (PDT)
Received: from caladan ([89.107.106.10])
 by smtp.gmail.com with ESMTPSA id 89sm5798267eda.6.2020.08.03.05.55.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 03 Aug 2020 05:55:44 -0700 (PDT)
From: Helmut Eller <eller.helmut@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#42691: 28.0.50; eval-and-compile
References: <m24kpkkvq7.fsf@HIDDEN> <87bljsqdqq.fsf@HIDDEN>
 <m2sgd4kosc.fsf@HIDDEN> <87v9i0os07.fsf@HIDDEN>
Date: Mon, 03 Aug 2020 14:55:43 +0200
In-Reply-To: <87v9i0os07.fsf@HIDDEN> (Andreas Schwab's message of "Mon, 03
 Aug 2020 14:04:08 +0200")
Message-ID: <m2imdzlwhc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42691
Cc: 42691 <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.0 (-)

On Mon, Aug 03 2020, Andreas Schwab wrote:

> On Aug 03 2020, Helmut Eller wrote:
>
>> Are you saying this is not a bug in eval-and-compile?
>
> Yes.
>
>> The docstring of eval-and-compile says eval-and-compile is like progn,
>> except that the body it is evaluated at compile-time too.  If it is
>> supposed to work like progn, then the environment should be defined as
>> for progn.
>
> At runtime, yes.

So you are arguing, that the body should be evaluated and macro-expanded
in the null environment.  That's not like progn at all.  Obviously, I
disagree.  I also note that

  emacs -Q --batch -l bug.el

prints:

  Eager macro-expansion failure: (void-function foo)
  Eager macro-expansion failure: (void-function foo)
  Symbol=E2=80=99s function definition is void: foo

which I also consider a bug.

Helmut




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

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


Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 12:04:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 03 08:04:12 2020
Received: from localhost ([127.0.0.1]:44528 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k2ZCO-0000sk-NA
	for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 08:04:12 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:40612)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1k2ZCM-0000sb-N6
 for 42691 <at> debbugs.gnu.org; Mon, 03 Aug 2020 08:04:11 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4BKxPj3C5Nz1qs03;
 Mon,  3 Aug 2020 14:04:09 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 4BKxPj1Wl5z1qrgF;
 Mon,  3 Aug 2020 14:04:09 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id vlgeJ7eQJuEd; Mon,  3 Aug 2020 14:04:08 +0200 (CEST)
X-Auth-Info: zby6SgOiSe5Zi7FFSDRPDEWFfzo7Ysmau4K+2/NalCJcoFEDy90m+f6Wbhg4y6BI
Received: from igel.home (ppp-46-244-160-167.dynamic.mnet-online.de
 [46.244.160.167])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Mon,  3 Aug 2020 14:04:08 +0200 (CEST)
Received: by igel.home (Postfix, from userid 1000)
 id 18EAE2C0A6B; Mon,  3 Aug 2020 14:04:08 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Helmut Eller <eller.helmut@HIDDEN>
Subject: Re: bug#42691: 28.0.50; eval-and-compile
References: <m24kpkkvq7.fsf@HIDDEN> <87bljsqdqq.fsf@HIDDEN>
 <m2sgd4kosc.fsf@HIDDEN>
X-Yow: Well, I'm INVISIBLE AGAIN..  I might as well pay a visit to the
 LADIES ROOM...
Date: Mon, 03 Aug 2020 14:04:08 +0200
In-Reply-To: <m2sgd4kosc.fsf@HIDDEN> (Helmut Eller's message of "Mon, 03
 Aug 2020 12:27:15 +0200")
Message-ID: <87v9i0os07.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 42691
Cc: 42691 <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.7 (-)

On Aug 03 2020, Helmut Eller wrote:

> Are you saying this is not a bug in eval-and-compile?

Yes.

> The docstring of eval-and-compile says eval-and-compile is like progn,
> except that the body it is evaluated at compile-time too.  If it is
> supposed to work like progn, then the environment should be defined as
> for progn.

At runtime, yes.

Andreas.

-- 
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#42691; Package emacs. Full text available.

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


Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 10:27:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 03 06:27:25 2020
Received: from localhost ([127.0.0.1]:44407 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k2Xgj-0004ns-HE
	for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 06:27:25 -0400
Received: from mail-ej1-f44.google.com ([209.85.218.44]:34669)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eller.helmut@HIDDEN>) id 1k2Xgh-0004nd-4k
 for 42691 <at> debbugs.gnu.org; Mon, 03 Aug 2020 06:27:23 -0400
Received: by mail-ej1-f44.google.com with SMTP id o23so10603131ejr.1
 for <42691 <at> debbugs.gnu.org>; Mon, 03 Aug 2020 03:27:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=TBwdMipy0p37r8ptyZQUxB2wTUgnzAnNHcPN/FUE+ZU=;
 b=q6Hiv9JmiMuqRUurS/vDeQRg4PwLLKTFhcFsUfJDgiVn1btIydinM44F1tkTTeUi/r
 NV1pNPaqC0OXXFvvuOxEgmmEoejNd8lTsXdQfUtJ8X+lcueXRXtjzWIfaMnfDnX6kzL9
 RW5BHXyW/Rj33VaVjKxzZWWDKe+rkXbKNgUa5VuBIWeagt6SiQIusxLHM4RWVY6K3FH2
 n7lZ0CEbyjp6rZRmuKLuULFkjlN/B1lRSGVVWkUl4q4EPZS64HeQ6N4oPLZZBDyAbxRu
 ObSU9jZLpDae63NaHSi8FiuhHfsx71PhvZ8LxsDOIU8Uu+HJVswoXHYVu8izK10ON/sP
 GXmg==
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:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=TBwdMipy0p37r8ptyZQUxB2wTUgnzAnNHcPN/FUE+ZU=;
 b=c5JjAOm8fU0Zdz0SCvGEzmS74m8HFnSol6Yt3qrNwO2Yz4vzLbRyAxYyMNgv9/NJt9
 TfmrOv9ZQlZoGqNihUGkGnPAON/fsHP+3iwVrUWRLasM6yHw5ZItUKnw4T7bbFS8deTc
 ltMQkuFTmJmgI/G6cdZbXTPBe228kOwyV5O7BLEMe8ppMNL0YqGh8tXk7k3++Lt/Yw4X
 fVs0WqhMZe87g2ADEofMZ2JNNXzaGop/9NSRqZaPHMzggYzR4IQAj9hYEvTGGfFD2UjB
 R5Abq2Nctnqf/0++arNOmgMXUdl6vjE/Cxk0RiyaihQkvVWZOYSzfsq9iLXgali8ASzf
 fJzw==
X-Gm-Message-State: AOAM53094g/KFsNvaSLBsHICQDbsQoDN0AVAdZ/ACto/ij/PeGwf10Ub
 YvlxRNBrtQ+yPAcVwCiWFCVmtwDz
X-Google-Smtp-Source: ABdhPJzwByveJYRx7YCSrYPC693G7kfRjKDvazE86ARN8dWY7bh7K+tgJaL2Tdt8G7vUqmBwfadbxA==
X-Received: by 2002:a17:906:e50:: with SMTP id
 q16mr4512403eji.155.1596450436766; 
 Mon, 03 Aug 2020 03:27:16 -0700 (PDT)
Received: from caladan ([89.107.106.10])
 by smtp.gmail.com with ESMTPSA id n25sm1342526ejr.21.2020.08.03.03.27.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 03 Aug 2020 03:27:16 -0700 (PDT)
From: Helmut Eller <eller.helmut@HIDDEN>
To: Andreas Schwab <schwab@HIDDEN>
Subject: Re: bug#42691: 28.0.50; eval-and-compile
References: <m24kpkkvq7.fsf@HIDDEN> <87bljsqdqq.fsf@HIDDEN>
Date: Mon, 03 Aug 2020 12:27:15 +0200
In-Reply-To: <87bljsqdqq.fsf@HIDDEN> (Andreas Schwab's message of "Mon, 03
 Aug 2020 11:29:17 +0200")
Message-ID: <m2sgd4kosc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 42691
Cc: 42691 <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.0 (-)

On Mon, Aug 03 2020, Andreas Schwab wrote:

> On Aug 03 2020, Helmut Eller wrote:
>
>> Compiling this example:
>>
>>   (require 'cl-lib)
>>   (cl-macrolet ((foo () '123))
>>     (eval-and-compile (foo)))
>>
>> with
>>
>>   emacs -Q --batch -f batch-byte-compile bug.el
>>
>> prints:
>>
>>   In toplevel form:
>>   bug.el:2:1: Error: Symbol=E2=80=99s function definition is void: foo
>>
>> I think when compiling eval-and-compile the macro-environment is not
>> passed along properly.
>
> Only the body of eval-and-compile is evaluated at that point.  If you
> want to modify the environment of the evaluation, you need to move that
> modification inside the eval-and-compile form.

Are you saying this is not a bug in eval-and-compile?

The docstring of eval-and-compile says eval-and-compile is like progn,
except that the body it is evaluated at compile-time too.  If it is
supposed to work like progn, then the environment should be defined as
for progn.

Helmut




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

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


Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 09:29:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 03 05:29:24 2020
Received: from localhost ([127.0.0.1]:44335 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k2WmZ-00017h-Rp
	for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 05:29:24 -0400
Received: from mail-out.m-online.net ([212.18.0.9]:52661)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <whitebox@HIDDEN>) id 1k2WmX-00017Y-6i
 for 42691 <at> debbugs.gnu.org; Mon, 03 Aug 2020 05:29:22 -0400
Received: from frontend01.mail.m-online.net (unknown [192.168.8.182])
 by mail-out.m-online.net (Postfix) with ESMTP id 4BKsz35bqGz1qs3n;
 Mon,  3 Aug 2020 11:29:19 +0200 (CEST)
Received: from localhost (dynscan1.mnet-online.de [192.168.6.70])
 by mail.m-online.net (Postfix) with ESMTP id 4BKsz33gzqz1r56W;
 Mon,  3 Aug 2020 11:29:19 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mnet-online.de
Received: from mail.mnet-online.de ([192.168.8.182])
 by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new,
 port 10024)
 with ESMTP id YS__x_94MEw0; Mon,  3 Aug 2020 11:29:18 +0200 (CEST)
X-Auth-Info: F2PbFQZyvJVqGiZGbucGHPv5ErTmrfmB9Soy4DMdBXz5eRm3xBzfdAOeSD0xZx2D
Received: from igel.home (ppp-46-244-160-167.dynamic.mnet-online.de
 [46.244.160.167])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.mnet-online.de (Postfix) with ESMTPSA;
 Mon,  3 Aug 2020 11:29:18 +0200 (CEST)
Received: by igel.home (Postfix, from userid 1000)
 id 192462C085C; Mon,  3 Aug 2020 11:29:18 +0200 (CEST)
From: Andreas Schwab <schwab@HIDDEN>
To: Helmut Eller <eller.helmut@HIDDEN>
Subject: Re: bug#42691: 28.0.50; eval-and-compile
References: <m24kpkkvq7.fsf@HIDDEN>
X-Yow: Yow!  Maybe I should have asked for my Neutron Bomb in PAISLEY--
Date: Mon, 03 Aug 2020 11:29:17 +0200
In-Reply-To: <m24kpkkvq7.fsf@HIDDEN> (Helmut Eller's message of "Mon, 03
 Aug 2020 09:57:20 +0200")
Message-ID: <87bljsqdqq.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 42691
Cc: 42691 <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.7 (-)

On Aug 03 2020, Helmut Eller wrote:

> Compiling this example:
>
>   (require 'cl-lib)
>   (cl-macrolet ((foo () '123))
>     (eval-and-compile (foo)))
>
> with
>
>   emacs -Q --batch -f batch-byte-compile bug.el
>
> prints:
>
>   In toplevel form:
>   bug.el:2:1: Error: Symbol’s function definition is void: foo
>
> I think when compiling eval-and-compile the macro-environment is not
> passed along properly.

Only the body of eval-and-compile is evaluated at that point.  If you
want to modify the environment of the evaluation, you need to move that
modification inside the eval-and-compile form.

Andreas.

-- 
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#42691; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 3 Aug 2020 07:57:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 03 03:57:35 2020
Received: from localhost ([127.0.0.1]:44101 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k2VLi-0002ru-Ml
	for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 03:57:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:55964)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eller.helmut@HIDDEN>) id 1k2VLh-0002rn-6C
 for submit <at> debbugs.gnu.org; Mon, 03 Aug 2020 03:57:33 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36062)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eller.helmut@HIDDEN>)
 id 1k2VLg-0007vf-Ta
 for bug-gnu-emacs@HIDDEN; Mon, 03 Aug 2020 03:57:32 -0400
Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:45877)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eller.helmut@HIDDEN>)
 id 1k2VLf-0000mw-Ap
 for bug-gnu-emacs@HIDDEN; Mon, 03 Aug 2020 03:57:32 -0400
Received: by mail-ed1-x52a.google.com with SMTP id di22so19368948edb.12
 for <bug-gnu-emacs@HIDDEN>; Mon, 03 Aug 2020 00:57:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=RlimxXo9q/Vor9R11jBIWPq0MZXg95dw5Lmyb5WrELM=;
 b=Vrw+m8umY7s8Kh/mImkrbbz6umPgQy5wZ+nKWyQadOGHEEzb6BR1sVHc7Ct6JWXwGp
 VaMdkwJx6bML0zJfDWPfBUZL582ornyDnAW/BLq/rVOovYHICl+UxCLb0V7ht+z4wChF
 H3jhNE81HyrAjqGlUtuisKtTKqzLEbLGHj9Y1hGFAxgv8l81UU1b2amDAULM5a7GbuwQ
 EnwJNQRJjYdHI9bljnb0BWp70s0pjnGUNWfuY7QM9QnYVvIQgB6npuXihaq472moQZGk
 r9t2hGc/IrH0IqegKC0zHEf0m1wYrqW1atOuw9vseI/ZQ9eLOBlviJ9UlrM4mc5u4zUD
 5VdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=RlimxXo9q/Vor9R11jBIWPq0MZXg95dw5Lmyb5WrELM=;
 b=G+oGl9AlVimaVPEReTGFVWAItaofGtm578lfyD+kRc71dw2S8XcJnNJpdUpA2dQECa
 5RPJgIl5YyNmkFRVxA9VVdW82pQ7zIIk376Z2nsD7fTzMD+8I1auxBOYBaSs9O4VntnF
 FDXAPVo99QoasF//iPeLfWuSDUdOHM9DlJPKXqgz32mP7Z4HwLUP8aNi3qSfXh+k9BPx
 JaFwjvjK4ZN+Yj/c7qlq7tm+6+9taEpYcOC+vslt3c+AdcrDBZigVEXbcja1m/q6K+Lh
 D4Qt65ewD0mH4Ap0ABxJvV5zb8EpH48q1sTt8TQjQC7H3jhVAs9kxKkaoiDEvHRGi0+U
 gqDg==
X-Gm-Message-State: AOAM532Gcj5jJAP3ZtH2MFhthNm5k8sqTfdMr+QFolXa+WlXTbk+N/Ya
 7M0hfWXiWRLQqkoAo8Ua5HIxFI7y
X-Google-Smtp-Source: ABdhPJwckuQ1f/NNVUS0tHPa4TtNrMjotVaoVddQixVamRgN1wIymoXivw2qBOoaBzcr+yR52b7EiQ==
X-Received: by 2002:aa7:d1cc:: with SMTP id g12mr15033328edp.385.1596441448727; 
 Mon, 03 Aug 2020 00:57:28 -0700 (PDT)
Received: from caladan ([89.107.106.10])
 by smtp.gmail.com with ESMTPSA id g10sm15237405ejm.120.2020.08.03.00.57.27
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 03 Aug 2020 00:57:28 -0700 (PDT)
From: Helmut Eller <eller.helmut@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; eval-and-compile
Date: Mon, 03 Aug 2020 09:57:20 +0200
Message-ID: <m24kpkkvq7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::52a;
 envelope-from=eller.helmut@HIDDEN; helo=mail-ed1-x52a.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
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,
 URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.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: -2.3 (--)

Compiling this example:

  (require 'cl-lib)
  (cl-macrolet ((foo () '123))
    (eval-and-compile (foo)))

with

  emacs -Q --batch -f batch-byte-compile bug.el

prints:

  In toplevel form:
  bug.el:2:1: Error: Symbol=E2=80=99s function definition is void: foo

I think when compiling eval-and-compile the macro-environment is not
passed along properly.


In GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, ca=
iro version 1.16.0)
 of 2020-08-03 built on caladan
Repository revision: e1f09607e02eb507b229285ed48b85a3c6a50259
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)





Acknowledgement sent to Helmut Eller <eller.helmut@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#42691; 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, 3 Aug 2020 13:30:02 UTC

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