unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* macroexpand-all and cl-macrolet
@ 2013-08-17 19:25 Nic Ferrier
  2013-08-19  2:51 ` Stefan Monnier
  2013-08-19 12:08 ` Wolfgang Jenkner
  0 siblings, 2 replies; 4+ messages in thread
From: Nic Ferrier @ 2013-08-17 19:25 UTC (permalink / raw)
  To: emacs-devel

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.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-19 18:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-17 19:25 macroexpand-all and cl-macrolet Nic Ferrier
2013-08-19  2:51 ` Stefan Monnier
2013-08-19 12:08 ` Wolfgang Jenkner
2013-08-19 18:14   ` Nic Ferrier

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