mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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))))))
|
||||
|
||||
|
Reference in New Issue
Block a user