From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: [BUG?] Is there a bug with 'noweb' header when tangling source block? Date: Sat, 19 Apr 2014 21:00:14 +0900 Message-ID: <20140419120014.GA942@smoon> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbTwc-0002kX-1G for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 08:00:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WbTwS-0005dA-MB for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 08:00:29 -0400 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:50725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbTwS-0005bV-C2 for emacs-orgmode@gnu.org; Sat, 19 Apr 2014 08:00:20 -0400 Received: by mail-lb0-f170.google.com with SMTP id s7so2023441lbd.15 for ; Sat, 19 Apr 2014 05:00:18 -0700 (PDT) Received: from smoon ([37.49.170.122]) by mx.google.com with ESMTPSA id d9sm31083501laa.17.2014.04.19.05.00.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Apr 2014 05:00:17 -0700 (PDT) Content-Disposition: inline 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: General discussions about Org-mode --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, please consider attached example Org document 'ex.org'. There seems to be a problem when tangling a source block with noweb reference, without it source block is tangled fine. Two examples are also attached. Emacs version: 24.4.50 (trunk rev. 116991); org-mode: Org-mode version 8.2.5h (release_8.2.5h-991-g06c947 @ /usr/share/emacs/site-lisp/org/) --- WBR, Vladimir Lomov -- Anyway, I keep picturing all these little kids playing some game in this big field of rye and all. Thousands of little kids, and nobody's around -- nobody big, I mean -- except me. And I'm standing on the edge of some crazy cliff. What I have to do, I have to catch everybody if they start to go over the cliff -- I mean if they're running and they don't look where they're going I have to come out from somewhere and catch them. That's all I'd do all day. I'd just be the catcher in the rye. I know it; I know it's crazy, but that's the only thing I'd really like to be. I know it's crazy. -- J.D. Salinger, "Catcher in the Rye" --UugvWAfsgieZRqgk Content-Type: application/vnd.lotus-organizer Content-Disposition: attachment; filename="ex.org" Content-Transfer-Encoding: quoted-printable #+TITLE: Is there a problem with 'noweb' header?=0A#+AUTHOR: Vladimir Lomov= =0A=0A* The example=0A=0A#+NAME: ex1=0A#+BEGIN_SRC sh=0A echo "This line i= s included from other source block."=0A#+END_SRC=0A=0ALet's consider the fo= llowing two examples: the first one doesn't have any 'noweb' syntax=0Abut h= as 'noweb' header=0A#+BEGIN_SRC sh :tangle ex-ex1.sh :noweb yes=0A echo "H= ello, World!"=0A echo "This should be second line in tangled file."=0A#+EN= D_SRC=0A=0AThe second example has reference to named source block=0A#+BEGIN= _SRC sh :tangle ex-ex2.sh :noweb yes=0A echo "Hello, World!"=0A echo "Thi= s should be second line in tangled file."=0A <>=0A#+END_SRC=0A --UugvWAfsgieZRqgk Content-Type: application/x-sh Content-Disposition: attachment; filename="ex-ex1.sh" Content-Transfer-Encoding: quoted-printable echo "Hello, World!"=0Aecho "This should be second line in tangled file."=0A --UugvWAfsgieZRqgk Content-Type: application/x-sh Content-Disposition: attachment; filename="ex-ex2.sh" Content-Transfer-Encoding: quoted-printable echo "Hello, World!"echo "This should be second line in tangled file."echo = "This line is included from other source block."=0A --UugvWAfsgieZRqgk--