On Wed, Jan 11, 2012 at 12:52 PM, Meer, H. van der <H.vanderMeer@uva.nl> wrote:


On 11 jan. 2012, at 11:33, luigi scarso wrote:



On Wed, Jan 11, 2012 at 11:11 AM, Hans van der Meer <havdmeer@xs4all.nl> wrote:
Something must have been changed with buffers between the versions:
ConTeXt  ver: 2011.11.29 18:47 MKIV  fmt: 2011.12.31
and
ConTeXt  ver: 2012.01.09 10:08 MKIV  fmt: 2012.1.11

Formerly this was ok:
\startbuffer[abc]
whatever
\stopbuffer

Now I get: ! Missing } inserted.

Because running this in isolation goes without a problem, I suspect the change has to do with the project structure in which I use the buffer. But again, it worked in the past.
Does it works with
\setbuffer[abc]
whatever
\endbuffer
?


It works with these macros, yes. Thanks.

But is \setbuffer..\endbuffer something new? I do not see it on the Reference page of the wiki. Also it doesn't seem in line with ConTeXt's regular naming scheme of \startsomething..\stopsomething.
Can you give somewhat more information, for examle what is the difference between \setbuffer and \startbuffer?


Hans van der Meer


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________
Well, start/stopbuffer should work... and Hans said that it will be fixed in the next beta.

The problems seems to be a missing \endgroup

\setuvalue{\e!start\v!buffer}%
  {\bgroup
   \obeylines
   \dosingleempty\buff_start}

\def\buff_start[#1]%
  {\buff_start_indeed{}{#1}{\e!start\v!buffer}{\e!stop\v!buffer}}

\def\buff_start_indeed#1#2#3#4% \donothing needed !
  {\normalexpanded{\buff_pickup{#2}{#3}{#4}{}{\buff_stop{#4}}}}

Perhaps it should be
\def\buff_start[#1]%
  {\buff_start_indeed{}{#1}{\e!start\v!buffer}{\e!stop\v!buffer}\egroup}



--
luigi