emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Literate Programming - Continue a Source Block?


From: Eric Schulte
Subject: Re: [O] Literate Programming - Continue a Source Block?
Date: Fri, 10 Jun 2011 14:00:29 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Achim Gratz <address@hidden> writes:

> Eric Schulte <address@hidden> writes:
>
>> append the bodies of all blocks of the same name are appended
>>        during tangling
>
> Shouldn't this be called "concat(enate)" or "collate"?

I think "append" is just as clear as concatenate, and collate implies
shuffling which is not happening.

> Or, since several blocks with the same name seem a bit dubious, would
> it not be cleaner to have an index part to the block name and a range
> expression for the concatenation during tangling?  I might want to
> tangle them in different order than their appearance in the source,
> for instance.
>

I'm wary of adding too much duplicate functionality.  It is already
possible to organize the tangling of many named code blocks using noweb
reference expansion (a feature which I've used myself on real projects
in the past).  This existing method allows for unique block names and
for arbitrary tangling order.

Simplicity is the only reason that the new name-based appending behavior
was implemented, simplicity which (in my opinion) is lost when the user
defines a naming and sorting schema.

Cheers -- Eric

>
>
> Achim.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]