org-exp: raise an error when trying to export code blocks w/o languages
commite8033b7f04a09cdbb7b092be5a7ed1f62828694d
authorEric Schulte <schulte.eric@gmail.com>
Mon, 12 Jul 2010 17:42:59 +0000 (12 10:42 -0700)
committerEric Schulte <schulte.eric@gmail.com>
Mon, 12 Jul 2010 19:33:15 +0000 (12 12:33 -0700)
tree1910d391d7c741e890a37a005a0f0bdfc27345d7
parent1e502168543de178a1acd7caa541d5bffe8d6ae4
org-exp: raise an error when trying to export code blocks w/o languages

* lisp/ob.el (org-babel-get-src-block-info): ensure that we don't
  match (and return info for) source blocks without a language

* lisp/org-exp.el (org-export-replace-src-segments-and-examples):
  updated source code block regexp so that the presence of a language
  can be explicitly checked.  Also now raising an error when a source
  block does not have a language.
lisp/ob.el
lisp/org-exp.el