From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Problem with src_ruby inline code and [] Date: Wed, 16 Mar 2016 18:18:34 +0100 Message-ID: <87zitywdcl.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agF3c-0006ls-Ov for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 13:16:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agF3b-0000GG-SI for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 13:16:28 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:54433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agF3b-0000F5-Ln for emacs-orgmode@gnu.org; Wed, 16 Mar 2016 13:16:27 -0400 In-Reply-To: (Charles C. Berry's message of "Tue, 15 Mar 2016 14:51:00 -0700") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Charles C. Berry" Cc: William Denton , emacs-orgmode@gnu.org Hello, "Charles C. Berry" writes: > On Tue, 15 Mar 2016, William Denton wrote: > >> I was updating and exporting a file where I use Ruby to do some basic >> arithmetic on tables, and noticed that inline code blocks where I reference >> an array aren't working. >> > > ECM: > > src_ruby[:var t=sampletable]{t[2][2]} > > #+BEGIN_SRC emacs-lisp > (save-excursion > (search-backward (concat "src" "_")) > (org-element-property :value (org-element-inline-src-block-parser))) > #+END_SRC > > #+RESULTS: : t[2 Fixed. Thank you. Regards, -- Nicolas Goaziou