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:19:58 +0300 Message-ID: References: <871t07271d.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1143e3869faefb053d79bf5b X-Trace: blaine.gmane.org 1474968070 23237 195.159.176.226 (27 Sep 2016 09:21:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 09:21:10 +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:21:03 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 1booZA-0002rH-WC for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2016 11:20:45 +0200 Original-Received: from localhost ([::1]:49004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booZ9-0006CP-FQ for ged-emacs-devel@m.gmane.org; Tue, 27 Sep 2016 05:20:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booYT-0006AU-JM for emacs-devel@gnu.org; Tue, 27 Sep 2016 05:20:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1booYR-0000IN-G6 for emacs-devel@gnu.org; Tue, 27 Sep 2016 05:20:00 -0400 Original-Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]:34014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1booYR-0000IF-A1 for emacs-devel@gnu.org; Tue, 27 Sep 2016 05:19:59 -0400 Original-Received: by mail-it0-x230.google.com with SMTP id 15so18047748ita.1 for ; Tue, 27 Sep 2016 02:19:59 -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=QPRXW+lK/OSZkXsbY5xk1mkp04yFIWmZeLjfXiS9aFo=; b=N9DYo8xFiXW76TvtugRMWfTv2EzxG9jcaDIpkJ1FnT+OmZ41ao5R9VnCUemZJzb2M/ 79EU7CrUn7JF5WSg774R1v8b4m7JC00fyisjn/9kNTJtXMEaX0BeVUUVeDNVjFGaJdpU EuVksvs4W5oXKPVQoEtKPVG47yB+M4l0QIdyjCkb60lrrFMmm2Vd/NW/VkCLstBx3wL+ gmhZEaAmavIUADqSGtpuC8y6wnh/F1uzNXIsHDuppZOAcqgja+7WAcf+jvsGxwWonkBv FmQvi+NB4UOVe5/3/gOxN5WrcuH6z2IHVqcWm6I4+YSjeFGYgX3JKgDIOAAaRqTX7DuP S6UQ== 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=QPRXW+lK/OSZkXsbY5xk1mkp04yFIWmZeLjfXiS9aFo=; b=KY4wXSWLARG60gnPwONca6/CoKbPK6Hdj6JaU5phacQuNs+7C5PuEgMHnNNcEqQtjK fOoyohsUgi7pSvjo68hyApaUWN8SWIB/KwuJbYvoSipCaR+v5LZIWtVKlcyIAdctIPOA 0lGJ4KneJ6/5RvvQyKG7pwnTclpfBFWTqLXhK0zn7VlQ5mPurAKaDpgZWSWgdFyRYZ4L hQ4kD46sIbWjGep8tNeVrEzxb2XXgqvg44Fp/sYbC6qwoOgi+eoND8zmUMX4tBdqBtRE lsZJ13XPxkdKHOCMCdsNIT0jzxLt7krQt2wLhqyc9NmpCfWrszW4UvHKx6kkUGmFikZH mp9g== X-Gm-Message-State: AA6/9Rm02nmFM/jV706iWASSCo03XRTL5/YbsiGLquQ+u8T1Y2RYG4Ei2HChMEPlxadgnGQ/6VcyHX8Pq4at5A== X-Received: by 10.36.26.216 with SMTP id 207mr2754367iti.96.1474967998801; Tue, 27 Sep 2016 02:19:58 -0700 (PDT) Original-Received: by 10.79.12.213 with HTTP; Tue, 27 Sep 2016 02:19:58 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::230 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:207828 Archived-At: --001a1143e3869faefb053d79bf5b Content-Type: text/plain; charset=UTF-8 Heh, just found the place where the `with-no-warnings' seem to work for me: (let* ((fu #'(lambda (a) (+ a 1))) ba) (message "%s" `,fu) (let (byte-compile-warnings) (setq ba (byte-compile `(lambda (b) (funcall (with-no-warnings (quote ,fu)) b))))) (funcall ba 2)) --001a1143e3869faefb053d79bf5b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Heh, just found the place where the `with-no-warnings= ' seem to work for me:

(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 `(= lambda (b) (funcall (with-no-warnings (quote ,fu)) b)))))
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0(funcall ba 2))

--001a1143e3869faefb053d79bf5b--