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