emacs-orgmode
[Top][All Lists]
Advanced

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

[O] ob-ruby org-babel-ruby-table-or-string numeric argument patch


From: Matthew MacLean
Subject: [O] ob-ruby org-babel-ruby-table-or-string numeric argument patch
Date: Mon, 10 Aug 2015 12:00:31 -0600

Yo~!

fa5fd6351605912ec75e783cb626497b1ebe471e introduced a change where org-babel-script-escape stopped accepting numbers. This caused an issue in ob-ruby.el where when trying to evaluate something like "2 + 2", you would get the message:

  `org-babel-script-escape' expects a string

This broke evaluation of Ruby code blocks.

I suspect this is not the only location where this problem might arise, so I am submitting a patch so the function simply returns numbers if they are passed in rather than dying. (Because numbers don't need to be escaped, and this was the previous behaviour.)

Could you review my patch? Thanks..!

Attachment: org-babel-script-escape-numbers.patch
Description: Text Data


reply via email to

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