From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Constantin Kulikov Newsgroups: gmane.emacs.devel Subject: Re: Lambda in macrolet becomes a closure? (another breaking change in emacs:)) Date: Tue, 27 Sep 2016 12:13:02 +0300 Message-ID: References: <871t07271d.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11406664d898c0053d79a687 X-Trace: blaine.gmane.org 1474967631 25665 195.159.176.226 (27 Sep 2016 09:13:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 09:13:51 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 27 11:13:47 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1booSJ-0005Al-0k for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2016 11:13:39 +0200 Original-Received: from localhost ([::1]:48964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booSH-0004Z6-HH for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2016 05:13:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booRk-0004Z0-TL for emacs-devel@gnu.org; Tue, 27 Sep 2016 05:13:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1booRj-0006Wz-TH for emacs-devel@gnu.org; Tue, 27 Sep 2016 05:13:04 -0400 Original-Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:35083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booRj-0006Wp-Nf for emacs-devel@gnu.org; Tue, 27 Sep 2016 05:13:03 -0400 Original-Received: by mail-it0-x22d.google.com with SMTP id r192so98874475ita.0 for ; Tue, 27 Sep 2016 02:13:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EerkjPuxjuGmwSsGbrJbvk2y0h8PAWAb/3E8HLsOeoM=; b=JOAz5xiRsXKAAcADIQSxt867lqDa2wXQxEYF1mDFRMNGdDKN751NL2KwA4MgHTpag+ ca+K2F7sJ4YoBozxnw1jcRaQZtuy8CPhWlpjjXFM5R7jiKfxvCGLqPnFhB8k7pr0IFmp 4MPSVxESb8xqqWcKvnJNGXyCv6VsoEPq57EDD6MQPuUPV03VJUYcYiWgpT3W+TihvBtZ ao7R8e9gt9nBUKFldU26WApNtMzFvTCVOHLo7Byadx9IcLTV9GfUO2rsLXV9wfa+mtbK bqkY5MJWwiLZwyUqvzvba6FVfwIlrru/0jYumz9Z2z2k7l3dnRx9UY5840F4curSCvdy jN6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EerkjPuxjuGmwSsGbrJbvk2y0h8PAWAb/3E8HLsOeoM=; b=FZlwvpg1CQ1h23S/RjMKihl7htjTSbN48DLi7U01t7Aadt11occyjqpluzKOWGEpCT 4GmbvHgY9E+z5g0xXDAgZUaPsLh02aaHV6kIQPLGTvarILdBT5nKrahG0/tHRwFODP0m B0cXam9AJsK6kld2jk9zizhOrc854PV0BNOAJi2iMPikpqKfQo/MpSx7j9+prsw5Wa7A Ksf1nzwL2ZQiyHkcLXrGyAZuCmmgtOmUw+y6pRDp5ov30CvFwVk4IxgTuhZQ0T/A92L6 kmHOygzN2vfus6rVbgzxWfnkFCoke3WlADwroMMSmSq0sEGP4XCVwl5tSYT/i4SoG1eL gQlQ== X-Gm-Message-State: AA6/9Rmke0rHPtCbFrv7OsOiMHSU7JM6PBqrK8GGe+aXJRV5qLiAnO2rjj/hcv7rjibMKGfCYHh7XMer2F4EYg== X-Received: by 10.36.92.20 with SMTP id q20mr2889706itb.10.1474967583101; Tue, 27 Sep 2016 02:13:03 -0700 (PDT) Original-Received: by 10.79.12.213 with HTTP; Tue, 27 Sep 2016 02:13:02 -0700 (PDT) In-Reply-To: <871t07271d.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207827 Archived-At: --001a11406664d898c0053d79a687 Content-Type: text/plain; charset=UTF-8 > Since we're in a macro Actualy I run the code at run-time. I need to generate function and byte-compile it at runtime. Does `with-no-warnings' intended to be used at compile-time? I'm running this code in `ielm' and still get a warning (with-no-warnings (let* ((fu #'(lambda (a) (+ a 1))) ba) (message "%s" `,fu) (let (byte-compile-warnings) (setq ba (byte-compile `(lambda (b) (funcall (quote ,fu) b))))) (funcall ba 2))) > By looking at the value (or do I miss something)? Yes, car-safe works, thanks) --001a11406664d898c0053d79a687 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> Since we're in a= macro
Actualy I run the code a= t run-time. I need to generate function and byte-compile it at runtime.
Does `with-no-warnings' = intended to be used at compile-time?
I'm running this code in `ielm' and still get a warning=

(with-no-warnings
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (let*= ((fu #'(lambda (a) (+ a 1)))
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ba)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 (message "%s" `,fu)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (let (byte-compile-warnings)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(setq ba (byte-compile `(la= mbda (b) (funcall (quote ,fu) b)))))
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(funcall ba 2)))

> By looking at the value (or = do I miss something)?
Yes, car-safe works, thanks)

--001a11406664d898c0053d79a687--