From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.bugs
Subject: bug#41618: 28.0.50; Can't byte-compile an edebugged macro
Date: Sun, 31 May 2020 19:57:36 +0200
Message-ID:
References:
<20200531170119.11733.qmail@mail.muc.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
logging-data="6772"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 41618-done@debbugs.gnu.org
To: Alan Mackenzie
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 31 19:59:25 2020
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 1jfSF3-0001fR-2q
for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 May 2020 19:59:25 +0200
Original-Received: from localhost ([::1]:57464 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1jfSF2-00021z-4M
for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 May 2020 13:59:24 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37204)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1jfSEg-000209-If
for bug-gnu-emacs@gnu.org; Sun, 31 May 2020 13:59:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:50494)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1jfSEg-0000OM-8R
for bug-gnu-emacs@gnu.org; Sun, 31 May 2020 13:59:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1jfSEg-0003Tu-8N
for bug-gnu-emacs@gnu.org; Sun, 31 May 2020 13:59:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sun, 31 May 2020 17:59:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 41618
X-GNU-PR-Package: emacs
Original-Received: via spool by 41618-done@debbugs.gnu.org id=D41618.159094788513297
(code D ref 41618); Sun, 31 May 2020 17:59:02 +0000
Original-Received: (at 41618-done) by debbugs.gnu.org; 31 May 2020 17:58:05 +0000
Original-Received: from localhost ([127.0.0.1]:33803 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1jfSDb-0003Rz-CO
for submit@debbugs.gnu.org; Sun, 31 May 2020 13:58:04 -0400
Original-Received: from mail-ot1-f49.google.com ([209.85.210.49]:45294)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1jfSDZ-0003Ri-Cx
for 41618-done@debbugs.gnu.org; Sun, 31 May 2020 13:57:54 -0400
Original-Received: by mail-ot1-f49.google.com with SMTP id m2so4191008otr.12
for <41618-done@debbugs.gnu.org>; Sun, 31 May 2020 10:57:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=ZEhz1N8QEjY/ztMOXTU65NSnxQZ0dJwjenyuneRcZ10=;
b=ZqWcpKy/VYnVRxL106pSJTf2p4WhzpzkKGyQAfPltuxUuE2QDAlTpeQ/px2vxq66zc
wgz5eLH+aJlnut1GSxxqeFInrummCYVUsiGXSRxbF68e2ZBvT61T6no/UW1wW4WjZ32F
oLSP5ICMUVEOR5s9yIIp7peF4TFoDIapWdpsz2d1FQQH/W7xA5gM8yINriaum9NTC/ee
kX5/mAZ51b9KivMFle4BiurVzB7NevOYjwqMUfyEch8pOh7JlEwpc6HIskokWSZICiMD
KePbtkVLdgqqDYCG5MBeEfrKPqntZz3lm52HMSZ6PrwfqqAclPeR7hGcrNTlFLlabbU+
wa8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=ZEhz1N8QEjY/ztMOXTU65NSnxQZ0dJwjenyuneRcZ10=;
b=PWGf4ZROSRE5ygRO2btvz0g94oUwwmJToVZPOzjrTVWasC1MSCyiR2PNhYaBpTxMUj
GgY8aSs/+Y8qLVy7fIJQiRAkUWgLh9hkl55n/Oy/dNF/fu33uzFl9WtlLSXE6XeLGBaj
ogCHf2lZhW5AHNHDO8uQ90OByb3remvPHTIRtQz/u4IJSmEKSO2o2mNgacLA7+U/NX20
iSbyDri3/IgiAuiIWRdbXYs5zugVvWUjsnb4qrM7YrHpBc/JF43DJY/qWFxcSGm70kGb
KAMkRVmHCworJ8DuUVV1fAqxZ91FJ0iqtNo8CRIYQ57HXnaJK0V5QcQ2CoQxFRUmAur5
NXLw==
X-Gm-Message-State: AOAM532lLu1wwWtxTSoghubkztmx3f5XCerrKi6wKYvE69Iyh2z82rje
oL+Dko2xfVzslFgM14nICpqzaOJzvIct7Me77Cb/kSSZ
X-Google-Smtp-Source: ABdhPJznCZ5oOWjyfGfBOlyueykuCy4YvDDLamZLo/chEuCPzq9q9EzuACPbeQDOhsdyXtpR51H3HAoi5YdqW8KLGdE=
X-Received: by 2002:a05:6830:1457:: with SMTP id
w23mr13067478otp.174.1590947867516;
Sun, 31 May 2020 10:57:47 -0700 (PDT)
In-Reply-To: <20200531170119.11733.qmail@mail.muc.de>
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"
Xref: news.gmane.io gmane.emacs.bugs:181310
Archived-At:
Am So., 31. Mai 2020 um 19:01 Uhr schrieb Alan Mackenzie :
>
> Hello, Philipp.
>
> In article you wrote:
>
> > 1. Define some arbitrary macro:
>
> > (defmacro foo ())
>
> > 2. Edebug it using C-u C-M-x.
>
> This was not actually relevant. A simple evaluation with C-M-x produces
> the same error.
>
> > 3. Attempt to byte-compile it using M-: (byte-compile 'foo).
>
> > This produces an error:
>
> > Wrong type argument: listp, #[0 "\300\207" [nil] 1]
>
> > The stack trace is
>
> > Debugger entered--Lisp error: (wrong-type-argument listp #f(compiled-function () #))
> > eval((macro . #f(compiled-function () #)) t)
> > #f(compiled-function (form) #)(foo)
> > byte-compile(foo)
> > eval((byte-compile 'foo) t)
> > eval-expression((byte-compile 'foo) nil nil 127)
> > funcall-interactively(eval-expression (byte-compile 'foo) nil nil 127)
> > call-interactively(eval-expression nil nil)
> > command-execute(eval-expression)
>
> This was quite a simple bug. At the end of byte-compile, the code does
> two things:
> (i) If the argument to byte-compile is a symbol, the result is eval'd.
> (ii) If a macro is being compiled, 'macro is pushed onto the result.
>
> When both of these things were necessary, they were being done in the
> wrong order, throwing the error.
>
> I've committed a fix to the emacs-27 branch, and it should reach master
> the next time "somebody" copies the commits over. In the mean time,
> here's that patch, should you want to apply it to your system now:
>
Thanks for the quick fix. Confirmed that it's fixed on the emacs-27 branch.