emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [Babel] 2 new problems with tangling
@ 2014-06-17 15:00 Sebastien Vauban
  2014-06-17 17:14 ` Thorsten Jolitz
  2014-07-28 14:25 ` Bastien
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastien Vauban @ 2014-06-17 15:00 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

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

end of thread, other threads:[~2014-08-05  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 15:00 [Babel] 2 new problems with tangling Sebastien Vauban
2014-06-17 17:14 ` Thorsten Jolitz
2014-06-18 13:34   ` Sebastien Vauban
2014-07-28 14:25 ` Bastien
2014-08-05  9:42   ` Sebastien Vauban

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