Org-mode mailing list
 help / color / mirror / Atom feed
From: Aaron Madlon-Kay <aaron@madlon-kay.com>
To: emacs-orgmode@gnu.org
Cc: Aaron Madlon-Kay <aaron@madlon-kay.com>
Subject: [PATCH] ob-ruby.el: allow specification of ruby command w/header arg
Date: Tue, 20 Oct 2020 17:49:56 +0900
Message-ID: <20201020084956.61337-2-aaron@madlon-kay.com> (raw)
In-Reply-To: <20201020084956.61337-1-aaron@madlon-kay.com>

  Using the :ruby header arg.

* lisp/ob-ruby.el (org-babel-execute:ruby): Locally set
  `org-babel-ruby-command' using a header argument.

TINYCHANGE
---
 lisp/ob-ruby.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/ob-ruby.el b/lisp/ob-ruby.el
index 669c2eabf..80870c6c0 100644
--- a/lisp/ob-ruby.el
+++ b/lisp/ob-ruby.el
@@ -74,6 +74,9 @@ This function is called by `org-babel-execute-src-block'."
 		   (cdr (assq :session params))))
          (result-params (cdr (assq :result-params params)))
          (result-type (cdr (assq :result-type params)))
+	 (org-babel-ruby-command
+	  (or (cdr (assq :ruby params))
+	      org-babel-ruby-command))
          (full-body (org-babel-expand-body:generic
 		     body params (org-babel-variable-assignments:ruby params)))
          (result (if (member "xmp" result-params)
-- 
2.28.0



  reply	other threads:[~2020-10-20  8:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20  8:49 Aaron Madlon-Kay
2020-10-20  8:49 ` Aaron Madlon-Kay [this message]
2020-10-24 11:39   ` [PATCH] ob-ruby.el: allow specification of ruby command w/header arg Bastien
2020-10-25  1:21     ` Aaron Madlon-Kay
2020-11-10 19:34   ` Juri Linkov
2020-11-14 21:19     ` Kyle Meyer
2020-11-25 19:41       ` Juri Linkov
2020-11-27  6:42         ` [PATCH] ob-ruby.el: Don't reuse the same buffer among different named Kyle Meyer
2020-11-28 22:23           ` Kyle Meyer
2020-12-11  7:23             ` Aaron Madlon-Kay
2020-12-13  4:03               ` Kyle Meyer
2020-12-13 19:22                 ` Juri Linkov
2020-12-13 20:00                   ` Kyle Meyer
2020-12-14  0:52                     ` Aaron Madlon-Kay

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://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201020084956.61337-2-aaron@madlon-kay.com \
    --to=aaron@madlon-kay.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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git