0
0
Fork 1
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:
Ihor Radchenko 2023-04-02 17:02:39 +02:00
parent c316476ee9
commit 9ca271c406
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -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)