emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug#17523: 24.1; code block ":noweb no" ignored in org-mode
       [not found] <1400418929.6111.118692029.7F2AC4F3@webmail.messagingengine.com>
@ 2017-12-23 13:19 ` Nicolas Goaziou
  0 siblings, 0 replies; only message in thread
From: Nicolas Goaziou @ 2017-12-23 13:19 UTC (permalink / raw)
  To: Stephen P. Schaefer; +Cc: 17523-done

Hello,

"Stephen P. Schaefer" <sschaefer@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-23 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1400418929.6111.118692029.7F2AC4F3@webmail.messagingengine.com>
2017-12-23 13:19 ` bug#17523: 24.1; code block ":noweb no" ignored in org-mode Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).