From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Aug 2020 07:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42691@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159644145511035 (code B ref -1); Mon, 03 Aug 2020 07:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Aug 2020 07:57:35 +0000 Received: from localhost ([127.0.0.1]:44101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2VLi-0002ru-Ml for submit@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 ) id 1k2VLh-0002rn-6C for submit@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 ) id 1k2VLg-0007vf-Ta for bug-gnu-emacs@gnu.org; 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 ) id 1k2VLf-0000mw-Ap for bug-gnu-emacs@gnu.org; Mon, 03 Aug 2020 03:57:32 -0400 Received: by mail-ed1-x52a.google.com with SMTP id di22so19368948edb.12 for ; 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 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 00:57:28 -0700 (PDT) From: Helmut Eller Date: Mon, 03 Aug 2020 09:57:20 +0200 Message-ID: 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@gmail.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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) From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Aug 2020 09:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 42691@debbugs.gnu.org Received: via spool by 42691-submit@debbugs.gnu.org id=B42691.15964469644325 (code B ref 42691); Mon, 03 Aug 2020 09:30:01 +0000 Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 09:29:24 +0000 Received: from localhost ([127.0.0.1]:44335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2WmZ-00017h-Rp for submit@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 ) id 1k2WmX-00017Y-6i for 42691@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 References: 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: (Helmut Eller's message of "Mon, 03 Aug 2020 09:57:20 +0200") Message-ID: <87bljsqdqq.fsf@igel.home> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Aug 2020 10:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 42691@debbugs.gnu.org Received: via spool by 42691-submit@debbugs.gnu.org id=B42691.159645044518473 (code B ref 42691); Mon, 03 Aug 2020 10:28:01 +0000 Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 10:27:25 +0000 Received: from localhost ([127.0.0.1]:44407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2Xgj-0004ns-HE for submit@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 ) id 1k2Xgh-0004nd-4k for 42691@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@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 References: <87bljsqdqq.fsf@igel.home> Date: Mon, 03 Aug 2020 12:27:15 +0200 In-Reply-To: <87bljsqdqq.fsf@igel.home> (Andreas Schwab's message of "Mon, 03 Aug 2020 11:29:17 +0200") Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Aug 2020 12:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 42691@debbugs.gnu.org Received: via spool by 42691-submit@debbugs.gnu.org id=B42691.15964562533398 (code B ref 42691); Mon, 03 Aug 2020 12:05:01 +0000 Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 12:04:13 +0000 Received: from localhost ([127.0.0.1]:44528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2ZCO-0000sk-NA for submit@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 ) id 1k2ZCM-0000sb-N6 for 42691@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 References: <87bljsqdqq.fsf@igel.home> 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: (Helmut Eller's message of "Mon, 03 Aug 2020 12:27:15 +0200") Message-ID: <87v9i0os07.fsf@igel.home> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Aug 2020 12:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 42691@debbugs.gnu.org Received: via spool by 42691-submit@debbugs.gnu.org id=B42691.15964593548461 (code B ref 42691); Mon, 03 Aug 2020 12:56:02 +0000 Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 12:55:54 +0000 Received: from localhost ([127.0.0.1]:44614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2a0Q-0002CP-JX for submit@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 ) id 1k2a0N-0002CA-4J for 42691@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@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 References: <87bljsqdqq.fsf@igel.home> <87v9i0os07.fsf@igel.home> Date: Mon, 03 Aug 2020 14:55:43 +0200 In-Reply-To: <87v9i0os07.fsf@igel.home> (Andreas Schwab's message of "Mon, 03 Aug 2020 14:04:08 +0200") Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Aug 2020 13:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Helmut Eller Cc: 42691@debbugs.gnu.org Received: via spool by 42691-submit@debbugs.gnu.org id=B42691.159646060010424 (code B ref 42691); Mon, 03 Aug 2020 13:17:01 +0000 Received: (at 42691) by debbugs.gnu.org; 3 Aug 2020 13:16:40 +0000 Received: from localhost ([127.0.0.1]:44628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k2aKW-0002i3-76 for submit@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 ) id 1k2aKS-0002hs-Uh for 42691@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 References: <87bljsqdqq.fsf@igel.home> <87v9i0os07.fsf@igel.home> 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: (Helmut Eller's message of "Mon, 03 Aug 2020 14:55:43 +0200") Message-ID: <87o8nrq37y.fsf@igel.home> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sun Jun 22 00:37:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42691: 28.0.50; eval-and-compile Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Sep 2021 15:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 42691@debbugs.gnu.org, Helmut Eller Received: via spool by 42691-submit@debbugs.gnu.org id=B42691.16318045209107 (code B ref 42691); Thu, 16 Sep 2021 15:02:03 +0000 Received: (at 42691) by debbugs.gnu.org; 16 Sep 2021 15:02:00 +0000 Received: from localhost ([127.0.0.1]:56197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQstk-0002Ma-K3 for submit@debbugs.gnu.org; Thu, 16 Sep 2021 11:02:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQstj-0002HY-FJ for 42691@debbugs.gnu.org; Thu, 16 Sep 2021 11:01:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Xy/u0eHb/jgB4Ip+WtlE7SbPyp4Tt5cglxRVpy3tl3k=; b=F9lpaWcYmL/YDh5vIjfBN+Ro/E Kj3d7ZO8wfzwRPuwhtQnNzcoXiSGUATH5DpN1gWel/lWhvhGRzbV5ZNxRhq+ViEUglQ6rVt9XuLi1 rIAflVd/rHa0+qFim8g1iT3cGUBFFsONd2tARw2ZEyVbkmkOmOp/eFRuW7U1wcQMfLnQ=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQsta-00062L-7f; Thu, 16 Sep 2021 17:01:52 +0200 From: Lars Ingebrigtsen References: <87bljsqdqq.fsf@igel.home> <87v9i0os07.fsf@igel.home> Date: Thu, 16 Sep 2021 17:01:49 +0200 In-Reply-To: <87v9i0os07.fsf@igel.home> (Andreas Schwab's message of "Mon, 03 Aug 2020 14:04:08 +0200") Message-ID: <87ilz0zhr6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Andreas Schwab writes: >> Are you saying this is not a bug in eval-and-compile? > > Yes. I think that's correct -- the `eval-and-compile' makes the contents evaluate in contexts where it otherwise wouldn't be evaluated. But it doesn't make the enclosing forms be evaluated in those context [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andreas Schwab writes: >> Are you saying this is not a bug in eval-and-compile? > > Yes. I think that's correct -- the `eval-and-compile' makes the contents evaluate in contexts where it otherwise wouldn't be evaluated. But it doesn't make the enclosing forms be evaluated in those contexts, so in this case, they have to be moved down inside the `eval-and-compile'. So this seems to be working as designed, and I'm closing this bug report. (If I misunderstood what this was about, please respond to the debbugs address and we'll reopen.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 16 11:02:06 2021 Received: (at control) by debbugs.gnu.org; 16 Sep 2021 15:02:06 +0000 Received: from localhost ([127.0.0.1]:56201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQstp-0002Qm-Rz for submit@debbugs.gnu.org; Thu, 16 Sep 2021 11:02:06 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQstm-0002Ji-5F for control@debbugs.gnu.org; Thu, 16 Sep 2021 11:02:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=kDinCxZhsG44hAhRI5atuMhDn5oRVQ4JZYTqnQK2z90=; b=p1eyoFapkwAxRn9t93CuAhWBRj 8L3HXmaE+6UcSZkDZyerW0UihlhbLEc5HNui+//HpFJdzi99P62nzFQCp2vdbZCdJd/Q2GefvE7Q5 RAiUHRLKkyqcczBCJm/I4jUrxplOcrrpp4PAx5UNhzPcmAQv1n7iNjKf9tNXREqNlRqs=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQste-00062W-M9 for control@debbugs.gnu.org; Thu, 16 Sep 2021 17:01:56 +0200 Date: Thu, 16 Sep 2021 17:01:54 +0200 Message-Id: <87h7ekzhr1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #42691 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 42691 notabug close 42691 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 42691 notabug close 42691 quit