emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problems with INCLUDE, noweb and tangle
@ 2014-12-08 20:26 Daniele Pizzolli
  2014-12-09  9:33 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Daniele Pizzolli @ 2014-12-08 20:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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

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

end of thread, other threads:[~2014-12-09 13:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-08 20:26 problems with INCLUDE, noweb and tangle Daniele Pizzolli
2014-12-09  9:33 ` 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

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