lang/org: suppress :async+:session warnings for blacklisted langs
If they're blacklisted, they may have their own :async implementation, like jupyter does. The warning isn't useful or true for them.
This commit is contained in:
parent
8ccba925dd
commit
ce1105b463
1 changed files with 2 additions and 2 deletions
|
@ -230,10 +230,10 @@ Also adds support for a `:sync' parameter to override `:async'."
|
|||
(let* ((info (or info (org-babel-get-src-block-info)))
|
||||
(params (org-babel-merge-params (nth 2 info) params)))
|
||||
(cond ((or (assq :sync params)
|
||||
(not (assq :async params)))
|
||||
(not (assq :async params))
|
||||
(member (car info) org-babel-async-language-blacklist))
|
||||
(funcall fn arg info params))
|
||||
((not (member (cdr (assq :session params)) '("none" nil)))
|
||||
(message "Org babel :: :session is incompatible with :async. Executing synchronously!")
|
||||
nil)
|
||||
((funcall orig-fn fn arg info params))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue