From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#71934: comp--spill-lap-function and closure (wad: bug#71934: 31.0.50; edebug--called-interactively-skip vs. new fun objects) Date: Sat, 06 Jul 2024 03:33:57 -0400 Message-ID: References: <87sewo5vym.fsf@web.de> <87zfqwh1gb.fsf@web.de> <86o77c75jd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33242"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , Eli Zaretskii , Stefan Monnier , 71934@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 06 09:35:14 2024 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 1sPzww-0008Rr-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jul 2024 09:35:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPzwi-0005wO-ST; Sat, 06 Jul 2024 03:35:00 -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 1sPzwh-0005wB-3c for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 03:34:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPzwg-0008CZ-RB for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 03:34:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPzwk-0005Bv-9Z for bug-gnu-emacs@gnu.org; Sat, 06 Jul 2024 03:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Jul 2024 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71934 X-GNU-PR-Package: emacs Original-Received: via spool by 71934-submit@debbugs.gnu.org id=B71934.172025124919864 (code B ref 71934); Sat, 06 Jul 2024 07:35:02 +0000 Original-Received: (at 71934) by debbugs.gnu.org; 6 Jul 2024 07:34:09 +0000 Original-Received: from localhost ([127.0.0.1]:45480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPzvt-0005AK-FC for submit@debbugs.gnu.org; Sat, 06 Jul 2024 03:34:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPzvr-0005A5-RU for 71934@debbugs.gnu.org; Sat, 06 Jul 2024 03:34:08 -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 1sPzvi-00084L-BK; Sat, 06 Jul 2024 03:33:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Y2s9nC0MxeVheKeotXzO5XAQOiJCgBj1NSght5ByX1I=; b=GucByhk3huO5Pu9iiIeV dZL7B+myT8mhDwfamLlxuUvY2QGCNvlc8XotbNzLoGtlbrS0C2kx5y575OZbdFZgApzwvfKQalwPf LhSpqpt2eCysf0Y22Qza8R0nfblV37uPNsXRKKwV4vUK0IBYn3j+NpWJqI94izfMEOf5Rvwhr4GMA 4KasMRQJtuxVJ1q2LuVPgNHtltp9YdoUTwpnamffZ3ctQrL/Q12xZK/pf/R12MUTMACtlZclRz5XR GAjObcmkOIbnPrFNjNQ9J0znbphkJiVpSGIOFHSF5qSZhP55G1bQyClHplFdjn9nqW7c+9ZSiwCqy Q8/KWdyKduqlng==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sPzvi-0003Tl-2Z; Sat, 06 Jul 2024 03:33:58 -0400 In-Reply-To: (Alan Mackenzie's message of "Fri, 5 Jul 2024 16:48:21 +0000") 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:288463 Archived-At: Alan Mackenzie writes: > Hello, Stefan. > > On Fri, Jul 05, 2024 at 11:48:10 -0400, Stefan Monnier wrote: >> >> >> Andrea, can you take a look at this, please? >> >> > Yep, I believe that code does not require to be changed, the input of >> >> > comp--spill-lap-function is a form not an interpred function. >> >> But then why does it check for `closure`? >> > Back in 2023, one of the forms this function found itself unable to >> > compile was a closure. So I fixed this for bug #64646. > >> But there is no such thing as a *form* that looks like >> (closure ...), so if we found such a thing either it was a bug or it >> means that other function values like byte-code (or the new >> `interpreted-function`s) could appear there and should arguably be >> handled as well. > > Not sure what you mean by "no such thing as a form ... like a closure". > I bumped into one last summer. > > In particular (in my development repo fixing bug #64646) I put this into > *scratch*: > > (defconst foo (lambda (baz) (car baz))) > > , evaluated it with C-x C-e and then M-: (native-compile foo). This > threw the error "Cannot native-compile, form is not a lambda". I'm a little confused, I believe #64646 was about: (defun foo ()) (native-compile 'foo) Which still works for me on emacs-30, no? Andrea