all messages for Emacs-related lists mirrored at yhetil.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

* 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.