emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [Babel] 2 new problems with tangling


From: Sebastien Vauban
Subject: [O] [Babel] 2 new problems with tangling
Date: Tue, 17 Jun 2014 17:00:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (windows-nt)

Hello,

After an update to Org 8.2.7, I have troubles tangling files.

Problems:
- Code blocks "tagged" with ":tangle no" are still tangled.
- Code called in Noweb syntax "<<coderef()>>" is not executed anymore.

It's possible that the error resides on my side, so the first question
is: do you see the same as me?

ECM:

--8<---------------cut here---------------start------------->8---
#+TITLE:     Shell utilities
#+LANGUAGE:  en
#+OPTIONS:   ^:{}
#+PROPERTY:  eval no

* Preamble

Helper function.

#+name: current-year
#+begin_src emacs-lisp :eval yes :results silent :tangle no
(format-time-string "%Y")
#+end_src

* Common
  :PROPERTIES:
  :tangle:   ~/common.sh
  :END:

Everything in common between Bash and Z shell will come here.

#+begin_src sh :noweb yes
# Hey Emacs, this is a -*- sh -*- file
## .commonshrc --- Common features between (Linux and Cygwin) Bash and Z Shell

# Copyright (C) 2009-<<current-year()>>
#+end_src

#+begin_src sh
echo "This is tangled... right..."
#+end_src

#+begin_src sh :tangle no
echo "This is tangled as well... KO!"
#+end_src
--8<---------------cut here---------------end--------------->8---

now returns:

--8<---------------cut here---------------start------------->8---
# Hey Emacs, this is a -*- sh -*- file
## .commonshrc --- Common features between (Linux and Cygwin) Bash and Z Shell

# Copyright (C) 2009-<<current-year()>>

echo "This is tangled... right..."

echo "This is tangled as well... KO!"
--8<---------------cut here---------------end--------------->8---

instead of what I expected:

--8<---------------cut here---------------start------------->8---
# Hey Emacs, this is a -*- sh -*- file
## .commonshrc --- Common features between (Linux and Cygwin) Bash and Z Shell

# Copyright (C) 2009-2014

echo "This is tangled... right..."
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]