[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] emacs-lisp babel won't print

From: Lawrence Bottorff
Subject: [O] emacs-lisp babel won't print
Date: Fri, 25 Sep 2015 16:04:08 +0000

If I do this:

#+BEGIN_SRC emacs-lisp
(setq animals '(gazelle giraffe lion tiger))

| gazelle | giraffe | lion | tiger |

and then this

#+begin_src emacs-lisp
(defun print-elements-of-list (list)
  "Print each element of LIST on a line of its own."
  (while list
    (print (car list))
    (setq list (cdr list))))

: print-elements-of-list

and finally

#+BEGIN_SRC emacs-lisp
(print-elements-of-list animals)

I get nothing for results and "Code block produced no output." in Messages. Why can't it print out? Same code works fine in the IELM buffer.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]