emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: Aidan Gauland <aidalgol@no8wireless.co.nz>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Attempt to export buffer with invalid #+BEGIN_SRC fails with cryptic message [6.36trans]
Date: Tue, 13 Jul 2010 23:35:40 +0200	[thread overview]
Message-ID: <87pqyr12vn.wl%dmaus@ictsoc.de> (raw)
In-Reply-To: <4C3C3197.4010307@no8wireless.co.nz>


[-- Attachment #1.1: Type: text/plain, Size: 1198 bytes --]

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.eric@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.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

      parent reply	other threads:[~2010-07-13 21:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13  9:27 Bug: Attempt to export buffer with invalid #+BEGIN_SRC fails with cryptic message [6.36trans] Aidan Gauland
2010-07-13 10:38 ` Giovanni Ridolfi
2010-07-13 21:35 ` David Maus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqyr12vn.wl%dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --cc=aidalgol@no8wireless.co.nz \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).