GNU bug report logs - #17523
24.1; code block ":noweb no" ignored in org-mode

Previous Next

Packages: emacs, org-mode;

Reported by: "Stephen P. Schaefer" <sschaefer <at> acm.org>

Date: Sun, 18 May 2014 16:46:02 UTC

Severity: normal

Found in version 24.1

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 17523-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: "Stephen P. Schaefer" <sschaefer <at> acm.org>
Cc: 17523-done <at> debbugs.gnu.org
Subject: Re: bug#17523: 24.1; code block ":noweb no" ignored in org-mode
Date: Sat, 23 Dec 2017 14:19:19 +0100
Hello,

"Stephen P. Schaefer" <sschaefer <at> acm.org> 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




This bug report was last modified 7 years and 145 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.