emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [BUG] #+begin_src wo. language blocks XHTML export


From: David Maus
Subject: Re: [Orgmode] [BUG] #+begin_src wo. language blocks XHTML export
Date: Mon, 12 Jul 2010 10:13:58 +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)

SEric Schulte wrote:
>"Thomas S. Dye" <address@hidden> writes:

>> On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:
>>
>>> Sebastian Rose <address@hidden> writes:
>>>
>>> [...]
>>>>
>>>> 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..."
>>>>
>>>
>>> I would vote that this be considered an error as a source block
>>> doesn't make sense w/o a source language.  If others agree with this
>>> interpretation, I would be happy to submit a patch which actively
>>> raises an errors when this cases is encountered.
>>>
>>> Cheers -- Eric
>>
>> This seems like the right approach to me.
>>
>> Tom

>As promised here's a patch which raises errors when source blocks don't
>have a specified language.  I would prefer if the error could indicate
>which block caused the problem, but I don't know how to accomplish this.

Maybe we could store a marker in a text property of (source) blocks
right before they are processed in the input file?

Best,
  -- David

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden

Attachment: pgpLZZXHELJ8W.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]