unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@ferrier.me.uk>
To: emacs-devel@gnu.org
Subject: macroexpand-all and cl-macrolet
Date: Sat, 17 Aug 2013 20:25:18 +0100	[thread overview]
Message-ID: <87wqnk15nl.fsf@ferrier.me.uk> (raw)

Is macroexpand-all not supposed to work with macrolet?

  (progn
    (cl-macrolet 
        ((nlet (bindings &rest body)
           `(apply
             (lambda ,(mapcar 'car bindings) ,@body)
             (list ,@(mapcar 'cadr bindings)))))
      (macroexpand-all
       '(nlet ((a 1)
               (b '(10)))
         (* a (car b)))))) 

   =>  (nlet ((a 1)
              (b (quote (10))))
         (* a (car b)))

which surprised me a bit.




             reply	other threads:[~2013-08-17 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-17 19:25 Nic Ferrier [this message]
2013-08-19  2:51 ` macroexpand-all and cl-macrolet Stefan Monnier
2013-08-19 12:08 ` Wolfgang Jenkner
2013-08-19 18:14   ` Nic Ferrier

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=87wqnk15nl.fsf@ferrier.me.uk \
    --to=nferrier@ferrier.me.uk \
    --cc=emacs-devel@gnu.org \
    /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).