From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniele Pizzolli Subject: problems with INCLUDE, noweb and tangle Date: Mon, 08 Dec 2014 21:26:06 +0100 Message-ID: <86r3w9yjkx.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy4sy-0000I4-7m for emacs-orgmode@gnu.org; Mon, 08 Dec 2014 15:26:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xy4sn-0005mv-6K for emacs-orgmode@gnu.org; Mon, 08 Dec 2014 15:26:24 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:34975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xy4sm-0005me-Rl for emacs-orgmode@gnu.org; Mon, 08 Dec 2014 15:26:13 -0500 Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.134]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 2F4D6172097 for ; Mon, 8 Dec 2014 21:26:11 +0100 (CET) Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 1+Mi0Zroylec for ; Mon, 8 Dec 2014 21:26:09 +0100 (CET) Received: from localhost.invalid (host53-18-static.13-188-b.business.telecomitalia.it [188.13.18.53]) (Authenticated sender: me@toel.it) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0D5FB172071 for ; Mon, 8 Dec 2014 21:26:08 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-org; charset=utf-8 Content-Disposition: attachment; filename=master.org Content-Transfer-Encoding: quoted-printable #+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 =E2=82=AC 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 <> <> #+END_SRC #+RESULTS: balance : 1.00 =E2=82=AC Assets:bank:savings:inline : -1.00 =E2=82=AC 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 =3Dopening-inline=3D ref. BUG? #+name: tangled #+BEGIN_SRC ledger :noweb yes :tangle ledger-buggy1.dat :results output :ex= ports results <> <> #+END_SRC #+RESULTS: tangled : 1.00 =E2=82=AC Assets:bank:savings:inline : -1.00 =E2=82=AC Equity:Opening Balances : -------------------- : 0 ** All the raw data In this section the result: - inline in the document =3DC-c C-c=3D are incorrect BUG? - in the tangled files contain only the =3Dopening-inline=3D ref. BUG? - but in the exported file are correct #+name: tangled-buggy #+BEGIN_SRC ledger :noweb yes :tangle ledger-buggy2.dat :results output :ex= ports results :cmdline print <> <> #+END_SRC #+RESULTS: tangled-buggy : 2015/01/01 * Opening : Assets:bank:savings:inline 1.00 =E2=82=AC : Equity:Opening Balances --=-=-= Content-Type: text/x-org; charset=utf-8 Content-Disposition: attachment; filename=included.org Content-Transfer-Encoding: quoted-printable * Openings #+NAME: opening-included #+BEGIN_SRC ledger :noweb yes :results output silent :exports none 2015-01-01 * Opening Assets:bank:savings:included -1.00 =E2=82=AC Equity:Opening Balances #+END_SRC --=-=-=--