mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 15:32:52 +00:00
org-export: Display warning when code block results cannot be computed
* lisp/ob-exp.el (org-babel-exp-results): Display warning when babel does not know how to execute exported code block and :results demands results to be exported.
This commit is contained in:
parent
c316476ee9
commit
9ca271c406
|
@ -435,7 +435,8 @@ inhibit insertion of results into the buffer."
|
|||
(info (copy-sequence info))
|
||||
(org-babel-current-src-block-location (point-marker)))
|
||||
;; Skip code blocks which we can't evaluate.
|
||||
(when (fboundp (intern (concat "org-babel-execute:" lang)))
|
||||
(if (not (fboundp (intern (concat "org-babel-execute:" lang))))
|
||||
(warn "org-export: No org-babel-execute function for %s. Not updating exported results." lang)
|
||||
(org-babel-eval-wipe-error-buffer)
|
||||
(setf (nth 1 info) body)
|
||||
(setf (nth 2 info)
|
||||
|
|
Loading…
Reference in a new issue