Aidan Gauland wrote:
>[1  <multipart/signed (7bit)>]
>[1.1  <text/plain; UTF-8 (quoted-printable)>]
>Attempting to export a buffer with a #+BEGIN_SRC block with no language
>specified (i.e. an argumentless #+BEGIN_SRC block) fails with the
>message "apply: Wrong type argument: consp, nil".  This is rather
>cryptic; it would be nice if Org-publish could say where it failed even
>if not why it failed.

,----
| commit e8033b7f04a09cdbb7b092be5a7ed1f62828694d
| Author: Eric Schulte <schulte.e...@gmail.com>
| Date:   Mon Jul 12 10:42:59 2010 -0700
|
|     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.
`----

So there will be a more helpful error message.

HTH
  -- David

--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmj...@jabber.org
Email..... dm...@ictsoc.de

Attachment: pgpvWuWYmuVN9.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

Reply via email to