ob: a little more refactoring
* lisp/ob.el (org-babel-execute-src-block): Removed unused flet function.
This commit is contained in:
parent
e030d95ddb
commit
4e146a5ac2
16
lisp/ob.el
16
lisp/ob.el
|
@ -412,15 +412,13 @@ block."
|
||||||
(list (list result)) result))
|
(list (list result)) result))
|
||||||
(funcall cmd body params)))
|
(funcall cmd body params)))
|
||||||
;; if non-empty result and :file then write to :file
|
;; if non-empty result and :file then write to :file
|
||||||
(flet ((echo-res (result)
|
(when (cdr (assoc :file params))
|
||||||
(if (stringp result) result (format "%S" result))))
|
(when result
|
||||||
(when (cdr (assoc :file params))
|
(with-temp-file (cdr (assoc :file params))
|
||||||
(when result
|
(insert
|
||||||
(with-temp-file (cdr (assoc :file params))
|
(org-babel-format-result
|
||||||
(insert
|
result (cdr (assoc :sep (nth 2 info)))))))
|
||||||
(org-babel-format-result
|
(setq result (cdr (assoc :file params))))
|
||||||
result (cdr (assoc :sep (nth 2 info)))))))
|
|
||||||
(setq result (cdr (assoc :file params)))))
|
|
||||||
(org-babel-insert-result
|
(org-babel-insert-result
|
||||||
result result-params info new-hash indent lang)
|
result result-params info new-hash indent lang)
|
||||||
(run-hooks 'org-babel-after-execute-hook)
|
(run-hooks 'org-babel-after-execute-hook)
|
||||||
|
|
Loading…
Reference in New Issue