Sebastian, >>>>> "Sebastien" == Sebastien Vauban <sva-n...@mygooglest.com> writes: > From: Sebastien Vauban <sva-n...@mygooglest.com> > To: emacs-orgmode@gnu.org > Subject: Re: [O] Bug: code blocks with multiple word names create > Date: 2015-02-18T14:06:07+0100
> Hello, > Joost Helberg wrote: >> noweb-syntax allows blanks in names of code blocks. > Are you sure? Where did you read that? It's in https://www.cs.tufts.edu/~nr/noweb/johnson-lj.pdf. In org-mode it works as specified; the noweb expansion of names with multiple words works fine. >> The result-blocks of these code blocks are named as well, but have >> everything behind the first word stripped. This leads to result-block >> collisions in case there are two code blocks starting with the same >> word. > Quite logic if, in fact, it just reads the first token... which is what > happens, IIUC. I expect it to read the full name, which may have more than one word. > Of course, you could expect to get an error or warning reported. In order to run snippets of code which are also in use as noweb-items, it's currently impossible to use names with multiple words where the first word collides with other names. My patch allows the use of code blocks with sentences as names hence enjoying the literate in literate programming a lot more. I fail to see a reason for the result-blocks to have only one-word names, it doesn't break anything if these carry the full name of the code block. regards, Joost > Best regards, > Seb > -- > Sebastien Vauban -- Snow B.V.