Sebastian Rose wrote: >> >> I suppose a source block without languag should be considered an >> error, shouldn't it? Maybe Org should fail more gracefully when it >> encounters such a block during export?
>The current behaviour is new. The file I tried to export worked for >quite a while locally and on orgmode.org. The fallback was to behave >like `#+begin_example', I believe. >It can be considered an error, since the docs say: > "...This is done with the ‘src’ block, where you also need to specify > the name of the major mode that should be used to fontify the > example..." >But think of batch export. >But I'd like to see some kind of error message, or better be asked for >the language (i.e. a major-mode). The mode could be inserted after the >`#+begin_src'. If I understand the latest changes (i.e. integration of Babel into Org core) than Babel is responsible for formatting the code blocks. Merely I couldn't (yet) get the fingers into Babel's magic, but definitely agree that there should be at least a more useful error message -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmj...@jabber.org Email..... dm...@ictsoc.de
pgp6c4vT4HREV.pgp
Description: PGP signature
_______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode