[dev-context] Buffers again

Wolfgang Schuster wolfgang.schuster at gmail.com
Sun Jan 15 16:47:00 CET 2012


Am 15.01.2012 um 16:21 schrieb Hans Hagen:

> On 15-1-2012 15:37, Wolfgang Schuster wrote:
>> 
>> Am 15.01.2012 um 15:31 schrieb Wolfgang Schuster:
>> 
>>> Hi Hans,
>>> 
>>> in the new beta buffers are fixed but one \endgroup is on the wrong position.
>>> 
>>> In the following macros \endgroup has to be before \buff_stop{#4}.
>>> 
>>> \def\buff_start_indeed#1#2#3#4% \donothing needed !
>>>  {\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}\endgroup}}} % (3&  4&  5&  6)
>>> 
>>> A cleaner solution would be to remove \endgroup above and put it back into \buff_stop.
>>> 
>>> \def\buff_start_indeed#1#2#3#4%
>>>  {\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}}}
>>> 
>>> \unexpanded\def\buff_stop#1%
>>>  {\endgroup
>>>   \getvalue{#1}}
>> 
>> Can you also add a direct version of \getbuffer, e.g.
>> 
>>    \let\getbufferdirect\buff_get_stored_indeed % Would be \getbufferdata a better name?
>> 
>> or
>> 
>>   \def\getbufferdirect[#1]{\buff_get_stored_indeed{#1}}
> 
> how about
> 
> \def\getbufferdata[#1]{\buff_get_stored_indeed{#1}}

Yes.

Wolfgang


More information about the dev-context mailing list