babel: ob-emacs-lisp now wraps body in a progn on execute

This commit is contained in:
Eric Schulte 2010-04-27 13:55:48 -06:00
parent 77731fbe55
commit 6a1f5b2bcb
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@
(save-window-excursion
(let ((processed-params (org-babel-process-params params)))
(org-babel-reassemble-table
(eval (read (org-babel-expand-body:emacs-lisp body params)))
(eval (read (format "(progn %s)"
(org-babel-expand-body:emacs-lisp body params))))
(org-babel-pick-name (nth 4 processed-params) (cdr (assoc :colnames params)))
(org-babel-pick-name (nth 5 processed-params) (cdr (assoc :rownames params)))))))