From mboxrd@z Thu Jan 1 00:00:00 1970 From: D Bro Subject: Re: :noweb-ref property inheritance failure? Date: Tue, 18 Apr 2017 21:53:23 -0500 Message-ID: <04CFE025-8B0F-40C1-AA4D-4629F4FD9ECB@gmail.com> References: <65201F98-7A44-4521-938F-DB19D718C170@gmail.com> <36A52436-D544-4991-BB73-496879AABBED@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_E0000453-964C-4188-9745-65458935A3CF" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0fkI-00060j-3A for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 22:53:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0fkE-000297-6f for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 22:53:30 -0400 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]:34335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d0fkE-000291-0P for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 22:53:26 -0400 Received: by mail-oi0-x241.google.com with SMTP id y11so14915oie.1 for ; Tue, 18 Apr 2017 19:53:25 -0700 (PDT) In-Reply-To: <36A52436-D544-4991-BB73-496879AABBED@gmail.com> 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: "Charles C. Berry" Cc: emacs-orgmode@gnu.org --Apple-Mail=_E0000453-964C-4188-9745-65458935A3CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 PS I verified that in addition to org-use-property-inheritance, I have = org-babel-use-quick-and-dirty-noweb-expansion set to nil, since the = documentation and mailing list indicate that=E2=80=99s not compatible = with property inheritance. It=E2=80=99s good (and bad :) to know it=E2=80=99s just my config, based = on it working for you=E2=80=A6 > On Apr 18, 2017, at 9:47 PM, D Bro wrote: >=20 > Many thanks=E2=80=94especially for the quick response. Unfortunately, = no go. >=20 > The headline was a copy and paste issue into the email =E2=80=94 my = org-lint only complains about the :classname (I didn=E2=80=99t even know = about org-lint, thank you!) > Export to Ascii produces: >=20 > =E2=80=A6=20 > 1 Create > =3D=3D=3D=3D=3D=3D=3D=3D >=20 > ,---- > | <> > `---- >=20 >=20 > 1.1 Let's see what our code-weaving produces > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > 1.1.1 this is how we will assemble our code: > -------------------------------------------- >=20 > ,---- > | public class Yo { > | public static void main (Args[]) { > `---- >=20 >=20 > 1.1.2 body > ---------- >=20 > ,---- > | return "The test worked!"; > `---- >=20 >=20 > 1.1.3 foot > ---------- >=20 > ,---- > | // <> > | }} > `---- >=20 >=20 > 1.1.4 weave together > -------------------- >=20 > - which will weave together the above blocks to produce this: >=20 > ,---- > | cat TestDemo2.java > `=E2=80=94=E2=80=94 >=20 > Ed >=20 >> On Apr 18, 2017, at 9:04 PM, Charles C. Berry > wrote: >>=20 >> On Tue, 18 Apr 2017, D Bro wrote: >>=20 >>> Both 26.0 and 25.1 on OS X 10.12 via homebrew, using the Spacemacs = configuration. >>>=20 >>=20 >>> I recently tried the weaving technique from = http://orgmode.org/manual/noweb_002dref.html#noweb_002dref = = > : >>=20 >> [snip] >>=20 >> Using M-x org-lint on your example gives >>=20 >> 3 high Unknown header argument ":classname" >> 12 high Incorrect location for PROPERTIES drawer >>=20 >> The latter is because the drawer is not immediately after a headline = and is disregarded: >>=20 >>> **Let's see what our code-weaving produces >>> :PROPERTIES: >>> :header-args: :noweb-ref testdemo2 >>> :END: >>=20 >> If you put a space between `**' and `L[...]' the line becomes a valid = headline. Then the TestDemo2 src block produces >>=20 >> ,---- >> | public class Yo { >> | public static void main (Args[]) { >> | return "The test worked!"; >> | // >> | }} >> | cat TestDemo2.java >> `---- >>=20 >> on ASCII export. >>=20 >> You can ignore the message about :classname, which comes from ob-java = not defining it as a header-arg. >>=20 >> HTH, >>=20 >> Chuck >=20 --Apple-Mail=_E0000453-964C-4188-9745-65458935A3CF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 PS  I verified that in addition = to org-use-property-inheritance, I = have org-babel-use-quick-and-dirty-noweb-expansion set to nil, = since the documentation and mailing list indicate that=E2=80=99s not = compatible with property inheritance.

It=E2=80=99s good (and bad :) to know = it=E2=80=99s just my config, based on it working for you=E2=80=A6

On Apr 18, 2017, at 9:47 PM, D Bro <dabroyoh@gmail.com> = wrote:

Many = thanks=E2=80=94especially for the quick response.  Unfortunately, = no go.

  1. The headline was a copy and paste = issue into the email =E2=80=94 my org-lint only complains about the = :classname (I didn=E2=80=99t even know about org-lint, thank = you!)
  2. Export to Ascii produces:

=E2=80=A6 
1 Create
=3D=3D=3D=3D=3D=3D=3D=3D

  ,----
  = | <<testdemo2>>
  `----


1.1 Let's see what our code-weaving produces
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1.1.1 this is how we = will assemble our code:
--------------------------------------------

  ,----
  | public class Yo {
  | =   public static void main (Args[]) {
  = `----


1.1.2 body
----------

  ,----
  | return "The test = worked!";
  `----


1.1.3 foot
----------

  ,----
  | // <<test-foot>>
  | }}
  `----


1.1.4 weave together
--------------------

  - which will weave together the = above blocks to produce this:

    ,----
    | cat TestDemo2.java
  =   `=E2=80=94=E2=80=94

Ed

On Apr 18, 2017, at 9:04 PM, Charles C. Berry <ccberry@ucsd.edu> = wrote:

On Tue, 18 Apr 2017, D Bro wrote:

Both 26.0 and 25.1 on OS = X 10.12 via homebrew, using the Spacemacs configuration.

I recently tried the weaving technique from http://orgmode.org/manual/noweb_002dref.html#noweb_002dref = <http://orgmode.org/manual/noweb_002dref.html#noweb_002dref&= gt; :

[snip]

Using M-x org-lint on your example gives

    3 high  Unknown header argument = ":classname"
   12 high  Incorrect = location for PROPERTIES drawer

The latter = is because the drawer is not immediately after a headline and is = disregarded:

**Let's see what our code-weaving produces
:PROPERTIES:
:header-args: :noweb-ref = testdemo2
:END:

If= you put a space between `**' and `L[...]' the line becomes a valid = headline. Then the TestDemo2 src block produces

,----
 | public class Yo {
=  | public static void main (Args[]) {
 | return = "The test worked!";
 | //
 | = }}
 | cat TestDemo2.java
=  `----

on ASCII export.

You can ignore the message about :classname, = which comes from ob-java not defining it as a header-arg.

HTH,

Chuck


= --Apple-Mail=_E0000453-964C-4188-9745-65458935A3CF--