From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: header argument :noweb-ref seems can't be resolved Date: Mon, 18 Dec 2017 04:12:10 +0000 Message-ID: <8C1BE6FC-D004-49A9-82F5-03181061E848@ucsd.edu> References: <65580a97-24c4-a54c-655f-c37fcddd2cd1@gmail.com> <580C6094-17BE-44C7-8F4C-8BAF3113AA40@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQmmq-0002ld-7T for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 23:12:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQmmm-0008Th-6Y for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 23:12:20 -0500 Received: from iport-acv3-out.ucsd.edu ([132.239.0.4]:23449) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQmml-0008Rv-O0 for emacs-orgmode@gnu.org; Sun, 17 Dec 2017 23:12:16 -0500 In-Reply-To: Content-Language: en-US Content-ID: <2C1C296DE8B580408816973D79ACFC25@AD.UCSD.EDU> 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" To: stardiviner Cc: emacs-org-mode > On Dec 17, 2017, at 6:08 PM, stardiviner wrote: >=20 > The example I original copied from is Emacs org-mode info. > So I rewrite a hand typing content again: > ```org > * Test >=20 > #+begin_src shell :tangle yes :noweb yes :shebang #!/bin/sh > <> > #+end_src >=20 > ** the mount point of the fullest disk > :PROPERTIES: > :header-args: :noweb-ref fullest-disk > :END: >=20 > *** query all mount disks >=20 > #+begin_src shell > df \ > #+end_src >=20 > *** strip the header row >=20 > #+begin_src shell > | sed '1d' \ > #+end_src >=20 > *** output mount point of fullest disk >=20 > #+begin_src shell > | awk '{if (u < +$5) {u =3D +$5; m =3D $6}} END {print m}' > #+end_src > ``` >=20 > I can preview the first src block with [C-c C-v v] now. It is correct: > ```shell > df \ > | sed '1d' \ > | awk '{if (u < +$5) {u =3D +$5; m =3D $6}} END {print m}' > ``` > I can tangle it with [C-c C-v t] to same file name shell script `babel-no= web-ref.sh`. >=20 > But just can't run [C-c C-v e] or [C-c C-]. (Reports same error) > Seems org-mode can find correct noweb-ref for tangle but can't for eval. Nor can I. After a good while, I cannot figure how this works in tangle, but not execu= te. The calls to `org-babel-noweb-ref-resolve' look the same, but in tangle= it returns the :noweb-ref src blocks while in execute "" is returned. FWIW, labelling the individual src-blocks with the :noweb-ref header seems = to work. Chuck