From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: org-babel-tangle tangles too much ! Date: Tue, 01 Dec 2009 08:53:37 -0700 Message-ID: References: <51b0095d0912010654y32b109b1hb3795e86cf6e0416@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFV2f-0005li-Lo for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 10:53:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFV2b-0005kX-5M for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 10:53:29 -0500 Received: from [199.232.76.173] (port=59126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFV2b-0005kT-1t for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 10:53:25 -0500 Received: from mail-pw0-f47.google.com ([209.85.160.47]:45441) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFV2a-0000Sd-Kn for emacs-orgmode@gnu.org; Tue, 01 Dec 2009 10:53:24 -0500 Received: by pwi9 with SMTP id 9so3011632pwi.26 for ; Tue, 01 Dec 2009 07:53:23 -0800 (PST) In-Reply-To: <51b0095d0912010654y32b109b1hb3795e86cf6e0416@mail.gmail.com> (Nicolas Girard's message of "Tue, 1 Dec 2009 15:54:33 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Girard Cc: emacs-orgmode Hi Nicolas, At the moment org-babel believes that any time it sees a valid source block name surrounded by <<>> characters it is responsible for expanding them. Is there a reason that you are abusing this syntax? It looks as though you are trying to setup multiple levels of tangling like org-babel -> noweb -> source. If you can make a good case for why the behavior you describe should be supported then we could try to add it behind something like a #+srcname: b #+begin_src emacs-lisp :noweb no <> (b) #+end_src header argument, but at first blush the option seems to present too much opportunity for confusion. Maybe I'm missing something. Thanks -- Eric Nicolas Girard writes: > Hi, > I can't get tangle to work the way I want. > Given a file f.org which contains > > ===== > #+srcname: a > #+begin_src emacs-lisp > (a) > #+end_src > > #+srcname: b > #+begin_src emacs-lisp > <> > (b) > #+end_src > ===== > > I would like (a) to appear only once in the tangled file f.el. > All I could get is, that either (a) appears twice (default behaviour), > or (a) doesn't appear at all when I append ":tangle no" to #+srcname: > a. > > Any thoughts ?