org-babel-insert-result: Err on :results drawer inline src block

* lisp/ob-core.el (org-babel-insert-result): Throw an error when
trying to insert :results drawer in inline src blocks.
This commit is contained in:
Ihor Radchenko 2023-08-16 11:04:14 +03:00
parent 5496f5277f
commit 487f39efa6
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 1 additions and 0 deletions

View File

@ -2450,6 +2450,7 @@ INFO may provide the values of these header arguments (in the
(when inline
(let ((warning
(or (and (member "table" result-params) "`:results table'")
(and (member "drawer" result-params) "`:results drawer'")
(and result (listp result) "list result")
(and result (string-match-p "\n." result) "multiline result")
(and (member "list" result-params) "`:results list'"))))