|
| From: | Marcin Borkowski |
| Subject: | [O] Why does evaluating a piece of Elisp code seemingly not expand a macro? |
| Date: | Fri, 15 Jan 2016 11:08:45 +0100 |
| User-agent: | mu4e 0.9.13; emacs 25.1.50.1 |
This piece of code:
#+BEGIN_SRC elisp :results value verbatim :exports both
(defmacro forty-two ()
(* 6 7))
(defun print-answer ()
(message "The answer is %s." (forty-two)))
(symbol-function 'print-answer)
#+END_SRC
yields this:
#+RESULTS:
: (lambda nil (message "The answer is %s." (forty-two)))
and not that:
: (lambda nil (message "The answer is %s." 42))
Why?
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
| [Prev in Thread] | Current Thread | [Next in Thread] |