Re: [O] emacs-lisp babel won't print

2015-09-25 Thread Charles Millar
maybe add :results output to the last block On 09/25/2015 12:04 PM, Lawrence Bottorff wrote: #+BEGIN_SRC emacs-lisp (setq animals '(gazelle giraffe lion tiger)) #+END_SRC #+RESULTS: | gazelle | giraffe | lion | tiger | and then this #+begin_src emacs-lisp (defun print-elements-of-list (list)

Re: [O] emacs-lisp babel won't print

2015-09-25 Thread John Kitchin
try: #+BEGIN_SRC emacs-lisp :results output (print-elements-of-list animals) #+END_SRC the default results are value, and your function does not return anything I think. It prints them to output. Lawrence Bottorff writes: > If I do this: > > #+BEGIN_SRC emacs-lisp > (setq animals '(gazelle gira

[O] emacs-lisp babel won't print

2015-09-25 Thread Lawrence Bottorff
If I do this: #+BEGIN_SRC emacs-lisp (setq animals '(gazelle giraffe lion tiger)) #+END_SRC #+RESULTS: | 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 (ca