all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug in org-babel R language shadows ruby
@ 2009-12-04 22:50 Daniel Doherty
  0 siblings, 0 replies; only message in thread
From: Daniel Doherty @ 2009-12-04 22:50 UTC (permalink / raw
  To: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-04 22:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-04 22:50 Bug in org-babel R language shadows ruby Daniel Doherty

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.