emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roland <roland.donat@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Insert variable into tangled source code
Date: Tue, 6 Aug 2013 14:40:52 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130806T163825-932@post.gmane.org> (raw)
In-Reply-To: 861u66ly63.fsf@somewhere.org

Sebastien Vauban <sva-news@...> 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.

      reply	other threads:[~2013-08-06 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-06 13:43 Insert variable into tangled source code Roland
2013-08-06 13:57 ` Sebastien Vauban
2013-08-06 14:40   ` Roland [this message]

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

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

  git send-email \
    --in-reply-to=loom.20130806T163825-932@post.gmane.org \
    --to=roland.donat@gmail.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).