unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Constantin Kulikov <zxnotdead@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: Lambda in macrolet becomes a closure? (another breaking change in emacs:))
Date: Tue, 27 Sep 2016 12:13:02 +0300	[thread overview]
Message-ID: <CAFkz2yqND2aMvf85oeQmG8-hb53=1K-Pr5zscAKB7CCPQ1wKhA@mail.gmail.com> (raw)
In-Reply-To: <871t07271d.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

> 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)

[-- Attachment #2: Type: text/html, Size: 1302 bytes --]

  parent reply	other threads:[~2016-09-27  9:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-19 16:43 Lambda in macrolet becomes a closure? (another breaking change in emacs:)) Constantin Kulikov
2016-09-19 18:12 ` Stefan Monnier
2016-09-23 16:01   ` Michael Heerdegen
2016-09-23 16:13     ` Stefan Monnier
2016-09-23 17:19 ` Constantin Kulikov
2016-09-23 19:03   ` Stefan Monnier
2016-09-25 11:06     ` Constantin Kulikov
2016-09-25 14:15       ` Stefan Monnier
2016-09-25 18:01   ` Michael Heerdegen
2016-09-25 18:53     ` Stefan Monnier
2016-09-27  9:13     ` Constantin Kulikov [this message]
2016-09-27  9:19       ` Constantin Kulikov
2016-09-27 11:53         ` Constantin Kulikov
2016-09-27 14:57           ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFkz2yqND2aMvf85oeQmG8-hb53=1K-Pr5zscAKB7CCPQ1wKhA@mail.gmail.com' \
    --to=zxnotdead@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).