emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ELisp expression in a var not executed anymore on tangle
@ 2015-07-03 12:13 Sebastien Vauban
  2015-07-03 14:21 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastien Vauban @ 2015-07-03 12:13 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ELisp expression in a var not executed anymore on tangle
  2015-07-03 12:13 ELisp expression in a var not executed anymore on tangle Sebastien Vauban
@ 2015-07-03 14:21 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-07-03 14:21 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: public-emacs-orgmode-mXXj517/zsQ



Hello,

Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
writes:

> I noticed that the following code block:
>
> #+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
>
> does now return this:
>
> #!/bin/sh cmd="$EMACS -q -l ${workingDir}init.el"
>
> instead of:
>
> #!/bin/sh
> workingDir='d:/Users/sva/ecm/'
> cmd="$EMACS -q -l ${workingDir}init.el"
>
> IIRC, you can also see that it's not working by pressing `C-c C-v C-v'
> (preview).

This should be fixed in 048f0e1a82cbb9fa29aa5ad8c778b1a72fc59fda. Thank
you.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-03 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-03 12:13 ELisp expression in a var not executed anymore on tangle Sebastien Vauban
2015-07-03 14:21 ` Nicolas Goaziou

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).