emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <davison@stats.ox.ac.uk>
To: "Martin G. Skjæveland" <martige@ifi.uio.no>
Cc: emacs-orgmode@gnu.org, andrea Crotti <andrea.crotti.0@gmail.com>,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: What is output for org-babel?
Date: Sun, 08 Nov 2009 14:48:31 -0500	[thread overview]
Message-ID: <871vk8vlv4.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <4AF6DE49.8050602@ifi.uio.no> ("Martin G. Skjæveland"'s message of "Sun, 08 Nov 2009 16:05:45 +0100")

"Martin G. Skjæveland" <martige@ifi.uio.no> writes:

> andrea Crotti wrote:
>> I'm with org-mode 6.31a, I was trying to
>> get output in the exported files but I never see the output.
>
> Hi,
>
> not sure if this is related -- or helpful, but here goes!
>
> When I export the following file:
>
> ----------------start---------------
> * lowercase
> #+begin_src python :exports results
> 2+2
> #+end_src
>
> * uppercase
> #+BEGIN_SRC python :exports results
> 2+2
> #+end_src
> ----------------end---------------
>
> the results are (copied from pdf):
>
> ----------------start---------------
> 1   lowercase
>  4
>
> 2   uppercase
> 2+2
> ----------------end---------------
>
> Writing "begin_src" in lowercase or uppercase makes a difference. I am
> not sure if this is a feature or a bug.

Bug. However I'm not sure whether it is in org-mode or org-babel. In
general in org-mode, begin_src and BEGIN_SRC are equivalent (true for
all #+XXX directives I think). However, in this case the org-exp-blocks
client (org-babel) associates 'src' with its own block exporter, but it
says nothing about 'SRC'. So the solution could either be:

(a) Bug in the org-exp-blocks client (org-babel). The client should
explicitly hook up 'SRC' to its block pre-processor.

(b) Bug in org-mode. Org-exp-blocks should call the block pre-processor
for 'src' when it finds 'SRC' (and equivalently, if a client registers
'SRC', then 'src' should trigger it.)

I'm leaning towards (b), seeing as we already have the case
insensitivity in org-mode.

Dan


>
> Martin
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: 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:[~2009-11-08 19:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-05 11:17 What is output for org-babel? andrea Crotti
2009-11-05 14:26 ` Darlan Cavalcante Moreira
2009-11-06 12:13   ` andrea Crotti
2009-11-06 12:17     ` Carsten Dominik
2009-11-06 16:15     ` Thomas S. Dye
2009-11-08 20:20   ` Dan Davison
2009-11-12  0:25     ` Dan Davison
2009-11-08 15:05 ` "Martin G. Skjæveland"
2009-11-08 15:19   ` "Martin G. Skjæveland"
2009-11-08 19:48   ` Dan Davison [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=871vk8vlv4.fsf@stats.ox.ac.uk \
    --to=davison@stats.ox.ac.uk \
    --cc=andrea.crotti.0@gmail.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=martige@ifi.uio.no \
    /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).