From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Helberg Subject: Re: Bug: code blocks with multiple word names create single word result-blocks leading to collisions [8.2.10 (8.2.10-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20141013/)] Date: Wed, 18 Feb 2015 14:51:21 +0100 Message-ID: <87twyjiazq.fsf@snow.nl> References: <87vbizidmz.fsf@snow.nl> <86wq3fpdxc.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33273) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO52R-0001st-8O for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 08:51:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO52M-0002SV-5T for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 08:51:39 -0500 Received: from mx.snow.nl ([213.154.248.146]:56993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO52L-0002P5-Sg for emacs-orgmode@gnu.org; Wed, 18 Feb 2015 08:51:34 -0500 In-reply-to: <86wq3fpdxc.fsf@example.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org Sebastian, >>>>> "Sebastien" == Sebastien Vauban writes: > From: Sebastien Vauban > 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.