emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Doherty <ddoherty03@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug in org-babel R language shadows ruby
Date: Fri, 4 Dec 2009 16:50:16 -0600	[thread overview]
Message-ID: <bccdbd7f0912041450g575a7026s4e2e3e523fffbe05@mail.gmail.com> (raw)


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

All,

I'm not on this mailing list, but thought this would be the right place to
pass along a bug in org-babek
that had me baffled for a long time.

I was initializing org-babel with the following from my init.el file
===========================================
(require 'org-babel-init)
(require 'org-babel-ruby)
(require 'org-babel-R)
(require 'org-babel-python)
(org-babel-load-library-of-babel)
============================================

When executing a ruby src block, I would get an error saying that the "r"
language was not a babel-interpreter.

When I change the order of the language initializations, the error goes
away:
============================================
(require 'org-babel-init)
(require 'org-babel-R)
(require 'org-babel-ruby)
(require 'org-babel-python)
(org-babel-load-library-of-babel)
============================================

Now, ruby is recognized.  Looks like the function for parsing the src block
is seeing the 'r' in ruby and stopping
because 'R" is a valid language, but then choking when it tries to run 'r'.

I hope someone can get this to Eric Schulte to see what's going on.  In the
meantime, putting ruby second is a workaround.

I suspect a similar problem happens whenever one language is a prefix of
another.

Regards,

Dan Doherty

[-- Attachment #1.2: Type: text/html, Size: 1491 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

                 reply	other threads:[~2009-12-04 22:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=bccdbd7f0912041450g575a7026s4e2e3e523fffbe05@mail.gmail.com \
    --to=ddoherty03@gmail.com \
    --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).