Rudolf Adamkovič <[email protected]> writes: > Ihor Radchenko <[email protected]> writes: > >>> [...] Would this be more complicated than `(setq-local >>> org-confirm-babel-evaluate nil)` executed when the user picks "yes >>> for all code blocks in this buffer"? >> >> I was only referring to the specific email I linked to. >> See "What we can do ..." >> >> What I proposed there is indeed more complicated - a superset of >> buffer-local org-confirm-babel-evaluate. In any case, it was about >> adding a new choice when confirming evaluation, not replacing the >> defaults. > > Thanks! I will study it in detail. > > My idea was to simply add "yes to all" for the current file or session, > as a little convenience for when the Emacs config breaks, etc. No > rocket science refactoring. :)
It might be ok as a minimal addition. > Before every `org-babel-.*:LANG' call, we check if `org-babel-load:LANG' > is bound, and if so, we call it. (Do we expect non-nil return?) If not > bound, we try to require `ob-LANG'. If that fails, then we error out. > Both `org-babel-load-languages' and `org-babel-do-load-languages' become > deprecated, where the latter will do nothing. > > Do I have that right? Yes. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
