emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: David Maus <dmaus@ictsoc.de>
Cc: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [BUG] #+begin_src wo. language blocks XHTML export
Date: Mon, 12 Jul 2010 11:11:21 +0200	[thread overview]
Message-ID: <AAB9F9C9-37DA-4F61-8FD1-3D0A82D133FC@gmail.com> (raw)
In-Reply-To: <87y6dhglrt.wl%dmaus@ictsoc.de>


On Jul 12, 2010, at 10:13 AM, David Maus wrote:

> SEric Schulte wrote:
>> "Thomas S. Dye" <tsd@tsdye.com> writes:
>
>>> On Jul 8, 2010, at 9:09 AM, Eric Schulte wrote:
>>>
>>>> Sebastian Rose <sebastian_rose@gmx.de> 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?

The problem here is that during export, the source code is taken
from a temporary buffer containing an already modifed copy of the
original buffer.

Another solution would be to include into the message is short
part of the code itself (maybe the first line...) - this should
make it possible to identify the problematic block reasonably easily.

- Carsten

  reply	other threads:[~2010-07-12  9:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-25 23:02 [BUG] #+begin_src wo. language blocks XHTML export Sebastian Rose
2010-07-04 14:11 ` David Maus
2010-07-04 22:10   ` Sebastian Rose
2010-07-05 14:56     ` David Maus
2010-07-08 19:09     ` Eric Schulte
2010-07-08 19:37       ` Thomas S. Dye
2010-07-10  4:32         ` Eric Schulte
2010-07-12  8:13           ` David Maus
2010-07-12  9:11             ` Carsten Dominik [this message]
2010-07-12 17:44               ` Eric Schulte
2010-07-12 18:12                 ` Carsten Dominik
2010-07-12 19:33                   ` Eric Schulte

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=AAB9F9C9-37DA-4F61-8FD1-3D0A82D133FC@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=dmaus@ictsoc.de \
    --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).