[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Bug: Attempt to export buffer with invalid #+BEGIN_SRC fai
From: |
David Maus |
Subject: |
Re: [Orgmode] Bug: Attempt to export buffer with invalid #+BEGIN_SRC fails with cryptic message [6.36trans] |
Date: |
Tue, 13 Jul 2010 23:35:40 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
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 <address@hidden>
| 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.... address@hidden
Email..... address@hidden
pgpvKGAGxa4OR.pgp
Description: PGP signature