mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-22 07:09:47 +00:00
ob-lisp: moved progn' wrapper out of
org-babel-expand-body:lisp'
Thanks to Mark Cox for suggesting this patch * lisp/ob-lisp.el (org-babel-expand-body:lisp): No longer wraps biddies in `progn'. (org-babel-execute:lisp): Wraps bodies in `progn' as they are passed to swank.
This commit is contained in:
parent
5d1674f330
commit
fa31c082d3
@ -54,7 +54,7 @@
|
||||
(format "(%S (quote %S))" (car var) (cdr var)))
|
||||
vars "\n ")
|
||||
")\n" body ")")
|
||||
(format "(progn %s)" body)))))
|
||||
body))))
|
||||
(if (or (member "code" result-params)
|
||||
(member "pp" result-params))
|
||||
(format "(pprint %s)" body)
|
||||
@ -73,7 +73,8 @@
|
||||
(read (org-bable-lisp-vector-to-list (cadr result)))
|
||||
(error (cadr result)))))
|
||||
(slime-eval `(swank:eval-and-grab-output
|
||||
,(buffer-substring-no-properties (point-min) (point-max)))
|
||||
,(format "(progn %s)" (buffer-substring-no-properties
|
||||
(point-min) (point-max))))
|
||||
(cdr (assoc :package params)))))
|
||||
(org-babel-pick-name (cdr (assoc :colname-names params))
|
||||
(cdr (assoc :colnames params)))
|
||||
|
Loading…
Reference in New Issue
Block a user