From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: ELisp expression in a var not executed anymore on tangle Date: Fri, 03 Jul 2015 14:13:29 +0200 Message-ID: <86wpyhcuc6.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello, I noticed that the following code block: --8<---------------cut here---------------start------------->8--- #+begin_src shell :tangle yes :var workingDir=(file-name-directory (or load-file-name (buffer-file-name))) :shebang #!/bin/sh cmd="$EMACS -q -l ${workingDir}init.el" #+end_src --8<---------------cut here---------------end--------------->8--- does now return this: --8<---------------cut here---------------start------------->8--- #!/bin/sh cmd="$EMACS -q -l ${workingDir}init.el" --8<---------------cut here---------------end--------------->8--- instead of: --8<---------------cut here---------------start------------->8--- #!/bin/sh workingDir='d:/Users/sva/ecm/' cmd="$EMACS -q -l ${workingDir}init.el" --8<---------------cut here---------------end--------------->8--- IIRC, you can also see that it's not working by pressing `C-c C-v C-v' (preview). Best regards, Seb -- Sebastien Vauban