From: Daniele Pizzolli <dan@toel.it>
To: emacs-orgmode@gnu.org
Subject: problems with INCLUDE, noweb and tangle
Date: Mon, 08 Dec 2014 21:26:06 +0100 [thread overview]
Message-ID: <86r3w9yjkx.fsf@me.localhost.invalid> (raw)
[-- Attachment #1: Type: text/plain, Size: 431 bytes --]
Hello all,
The noweb reference in the included file is not present in tangle (and
sometimes also is not present within the results in the buffer).
I am using: Org-mode version 8.3beta release_8.3beta-625-g8985b3
Please see the attached ECM with my comments (look for BUG). Let me
know if you want to have a look to the generated files.
You need ledger, but I guess this is a more general problem.
Thanks in advance,
Daniele
[-- Attachment #2: master.org --]
[-- Type: text/x-org, Size: 1960 bytes --]
#+EXPORT_EXCLUDE_TAGS: noexport
* Org Setup :noexport:
#+NAME: loadledger
#+BEGIN_SRC emacs-lisp :results none
(org-babel-do-load-languages 'org-babel-load-languages '((ledger . t) ))
#+END_SRC
* Financial Summaries
** Inline Opening :noexport:
#+NAME: opening-inline
#+BEGIN_SRC ledger :noweb yes :results output silent :exports none
2015-01-01 * Opening
Assets:bank:savings:inline 1.00 €
Equity:Opening Balances
#+END_SRC
** Included Opening :noexport:
#+INCLUDE: "./included.org"
** An overall balance summary
#+name: balance
#+BEGIN_SRC ledger :noweb yes :exports results :cmdline bal :results output
<<opening-inline>>
<<opening-included>>
#+END_SRC
#+RESULTS: balance
: 1.00 € Assets:bank:savings:inline
: -1.00 € Equity:Opening Balances
: --------------------
: 0
** An overall balance summary with not working tangle
In this section the result in the export are correct, but the tangled
files contains only the =opening-inline= ref. BUG?
#+name: tangled
#+BEGIN_SRC ledger :noweb yes :tangle ledger-buggy1.dat :results output :exports results
<<opening-inline>>
<<opening-included>>
#+END_SRC
#+RESULTS: tangled
: 1.00 € Assets:bank:savings:inline
: -1.00 € Equity:Opening Balances
: --------------------
: 0
** All the raw data
In this section the result:
- inline in the document =C-c C-c= are incorrect BUG?
- in the tangled files contain only the =opening-inline= ref. BUG?
- but in the exported file are correct
#+name: tangled-buggy
#+BEGIN_SRC ledger :noweb yes :tangle ledger-buggy2.dat :results output :exports results :cmdline print
<<opening-inline>>
<<opening-included>>
#+END_SRC
#+RESULTS: tangled-buggy
: 2015/01/01 * Opening
: Assets:bank:savings:inline 1.00 €
: Equity:Opening Balances
[-- Attachment #3: included.org --]
[-- Type: text/x-org, Size: 211 bytes --]
* Openings
#+NAME: opening-included
#+BEGIN_SRC ledger :noweb yes :results output silent :exports none
2015-01-01 * Opening
Assets:bank:savings:included -1.00 €
Equity:Opening Balances
#+END_SRC
next reply other threads:[~2014-12-08 20:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-08 20:26 Daniele Pizzolli [this message]
2014-12-09 9:33 ` problems with INCLUDE, noweb and tangle Nicolas Goaziou
2014-12-09 10:55 ` Daniele Pizzolli
2014-12-09 11:06 ` Sebastien Vauban
2014-12-09 11:52 ` Daniele Pizzolli
2014-12-09 13:10 ` Sebastien Vauban
2014-12-09 12:55 ` ablepharus
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=86r3w9yjkx.fsf@me.localhost.invalid \
--to=dan@toel.it \
--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).