From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Subject: Re: Insert variable into tangled source code Date: Tue, 6 Aug 2013 14:40:52 +0000 (UTC) Message-ID: References: <861u66ly63.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6iRt-0004cf-Jq for emacs-orgmode@gnu.org; Tue, 06 Aug 2013 10:41:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6iRm-000334-91 for emacs-orgmode@gnu.org; Tue, 06 Aug 2013 10:41:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:34518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6iRm-00032w-2N for emacs-orgmode@gnu.org; Tue, 06 Aug 2013 10:41:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V6iRj-0005I9-BK for emacs-orgmode@gnu.org; Tue, 06 Aug 2013 16:41:11 +0200 Received: from mar92-18-78-239-131-140.fbx.proxad.net ([78.239.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Aug 2013 16:41:11 +0200 Received: from roland.donat by mar92-18-78-239-131-140.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 06 Aug 2013 16:41:11 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sebastien Vauban writes: > > First, x[0,1] can't be resolved (unlike tab_x[0,1]). > > For the rest, I'd guess you must add the proper replacemen "method" for > `own_lang'. Is this the case? > > I mean: depending on the Babel language, variables must or must not be > prefixed by a $ sign to be replaced in the code block. For example, in Emacs > Lisp, you won't prefix vars with $. > > Maybe have a look at `sh' or `sql' Babel languages for inspiration. > > Best regards, > Seb > Thank you very much!!! I've just adapted the SQL expand variable function in ob-sql.el to my language and it works perfectly! Best regards. Roland.