More code streamlining: org-babel-execute:emacs-lisp.
This commit is contained in:
parent
d128662fa3
commit
4fa9c162d9
|
@ -40,11 +40,9 @@
|
||||||
function is called by `org-babel-execute-src-block' via multiple-value-bind."
|
function is called by `org-babel-execute-src-block' via multiple-value-bind."
|
||||||
(message "executing emacs-lisp code block...")
|
(message "executing emacs-lisp code block...")
|
||||||
(save-window-excursion
|
(save-window-excursion
|
||||||
(let ((print-level nil) (print-length nil) results)
|
(let ((print-level nil) (print-length nil))
|
||||||
(setq results
|
(eval `(let ,(mapcar (lambda (var) `(,(car var) ',(cdr var))) vars)
|
||||||
(eval `(let ,(mapcar (lambda (var) `(,(car var) ',(cdr var))) vars)
|
,(read (concat "(progn " body ")")))))))
|
||||||
,(read (concat "(progn " body ")")))))
|
|
||||||
results)))
|
|
||||||
|
|
||||||
(provide 'org-babel-lisp)
|
(provide 'org-babel-lisp)
|
||||||
;;; org-babel-lisp.el ends here
|
;;; org-babel-lisp.el ends here
|
||||||
|
|
Loading…
Reference in New Issue