Subject: Re: bug#17523: 24.1; code block ":noweb no" ignored in org-mode
From: Nicolas Goaziou <[email-masked]>
To: "Stephen P. Schaefer" <[email-masked]>
Cc: [email-masked]
Date: Sat, 23 Dec 2017 14:19:19 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

"Stephen P. Schaefer" <[email-masked]> writes:

> I'm trying to use org-mode noweb syntax to deal with erlang code that
> involves bit strings.  This is an example t.org file:
>
> #+STARTUP: indent
> * top level
>
>   #+begin_src erlang :noweb yes :tangle hello.erl
>   -module(hello).
>   -export(hello).
>   <<defines>>
>   <<functions>>
>   #+end_src
>
> ** defines :PROPERTIES: :noweb-ref: defines :END:
>
> #+begin_src erlang :noweb no
> -define(HELLO, <<"hello world">>).
> #+end_src
>
> ** functions :PROPERTIES: :noweb-ref: functions :END:
>
> #+begin_src erlang
> hello() -> ?HELLO.
> #+end_src
>
> I want it to tangle to
>
> -module(hello).
> -export(hello).
> -define(HELLO, <<"hello world">>).
> hello() -> ?HELLO.
>
> Instead it tangles to
>
> -module(hello).
> -export(hello).
> -define(HELLO, ).
> hello() -> ?HELLO.

This is now fixed. Thank you.

Note however, that Babel properties syntax changed since this report.
Properties drawers should be, e.g.,

   :PROPERTIES:
   :header-args: :noweb-ref functions
   :END:

Regards,

-- 
Nicolas Goaziou                                                0x80A93738