From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibault Marin Subject: ob-lua Date: Sat, 20 Aug 2016 00:18:24 -0500 Message-ID: <87bn0of273.fsf@dell-desktop.WORKGROUP> Reply-To: thibault.marin@gmx.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bayg0-0002pW-Hi for emacs-orgmode@gnu.org; Sat, 20 Aug 2016 01:18:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bayfw-0007Vj-B2 for emacs-orgmode@gnu.org; Sat, 20 Aug 2016 01:18:35 -0400 Received: from mout.gmx.net ([212.227.15.19]:64648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bayfw-0007UW-0h for emacs-orgmode@gnu.org; Sat, 20 Aug 2016 01:18:32 -0400 Received: from dell-desktop ([99.47.196.62]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M1VlJ-1bL5gb09Zh-00tQDv for ; Sat, 20 Aug 2016 07:18:28 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" Hi list, I was looking for lua support in source blocks and I came across this discussion: https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01149.html. It seems that this was never merged, but I am not sure why. Trying to use the ob-lua.el file linked, it appears to be working for my task (I just need to be able to pass variables to a lua block). I only had to make a small change to the file to get it to work, as `org-babel-get-header' is no longer available: 132c132 < (mapcar #'cdr (org-babel-get-header params :var)))) --- > (remove nil (mapcar (lambda (x) (when (eq (car x) :var) (cdr x))) params)))) There may be a better way to do it, but it seems to work. So my question is: could this be considered for a merge? The code does not seem to support sessions, I am not sure if that should be a blocker. Thanks, thibault