From 487f39efa68fa2d857f8d446d1c4b3a3b3e3f482 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 16 Aug 2023 11:04:14 +0300 Subject: [PATCH] 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. --- lisp/ob-core.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 027062401..63f83a271 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -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'"))))