Re: [O] Export backends are loaded after code block evaluation
Nope, no harm has been done. Still curious about it though. IMO, there's no reference to 'ox.el' in the babel source files so I don't understand how is this possible. 2014-11-23 13:36 GMT-03:00 Nicolas Goaziou m...@nicolasgoaziou.fr: Hello, Vicente Vera vicente...@gmail.com writes: Hello. Just noticed that after evaluating a code block with C-c C-c (org-babel-execute-src-block?) all export backends stored in 'org-export-backends' are loaded---or 'required'---automatically. Once I commented out my 'org-export-backends' setup those backends weren't loaded, but the default ones did (ascii html icalendar latex). Is this the intended behavior? `org-babel-execute-src-block' probably requires ox.el or some back-end, triggering. Back-ends are loaded as soon as ox.el is required. Tried to grep my way through Org's source files looking for a clue with no success. Also, is there a way to prevent this from happening? It doesn't seem extremely necessary to me. It doesn't really hurt either. Regards, -- Nicolas Goaziou
Re: [O] Export backends are loaded after code block evaluation
Vicente Vera vicente...@gmail.com writes: Nope, no harm has been done. Still curious about it though. IMO, there's no reference to 'ox.el' in the babel source files so I don't understand how is this possible. See line 848 in org.el (master branch, if it matters). Basically, Babel requires an export backend (ox-latex.el, likely), which, in turn requires ox.el. The snippet above does the rest. Regards,
Re: [O] Export backends are loaded after code block evaluation
Ok, finally sorted it out. Babel doesn't load ox-* files by itself (except for ob-haskell ob-latex). But, in my case, the code block's result is a table. In consequence Org needs org-table which in turn requires some ox- files and THEN org.el evaluates (after ox.el) 'org-export-backends'. Thank you for your patience. Now I can sleep soundly. 2014-11-24 16:42 GMT-03:00 Nicolas Goaziou m...@nicolasgoaziou.fr: Vicente Vera vicente...@gmail.com writes: Nope, no harm has been done. Still curious about it though. IMO, there's no reference to 'ox.el' in the babel source files so I don't understand how is this possible. See line 848 in org.el (master branch, if it matters). Basically, Babel requires an export backend (ox-latex.el, likely), which, in turn requires ox.el. The snippet above does the rest. Regards,
[O] Export backends are loaded after code block evaluation
Org-mode version 8.3beta (release_8.3beta-584-g3953cb @ /usr/local/share/emacs/site-lisp/org/) GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.14.4) of 2014-11-17 Hello. Just noticed that after evaluating a code block with C-c C-c (org-babel-execute-src-block?) all export backends stored in 'org-export-backends' are loaded---or 'required'---automatically. Once I commented out my 'org-export-backends' setup those backends weren't loaded, but the default ones did (ascii html icalendar latex). Is this the intended behavior? Tried to grep my way through Org's source files looking for a clue with no success. Also, is there a way to prevent this from happening? It doesn't seem extremely necessary to me.
Re: [O] Export backends are loaded after code block evaluation
Hello, Vicente Vera vicente...@gmail.com writes: Hello. Just noticed that after evaluating a code block with C-c C-c (org-babel-execute-src-block?) all export backends stored in 'org-export-backends' are loaded---or 'required'---automatically. Once I commented out my 'org-export-backends' setup those backends weren't loaded, but the default ones did (ascii html icalendar latex). Is this the intended behavior? `org-babel-execute-src-block' probably requires ox.el or some back-end, triggering. Back-ends are loaded as soon as ox.el is required. Tried to grep my way through Org's source files looking for a clue with no success. Also, is there a way to prevent this from happening? It doesn't seem extremely necessary to me. It doesn't really hurt either. Regards, -- Nicolas Goaziou