[dev-context] \savebuffer

Wolfgang Schuster schuster.wolfgang at gmail.com
Sat Jan 5 15:43:42 CET 2013


Hi Hans,

can you add braces around the argument for the list key otherwise \savebuffer[a,b,…][…] won’t work.

buff-ini.mkiv:

\def\buff_save[#1][#2]%
  {\begingroup
   \doifassignmentelse{#1}
     {\setupcurrentsavebuffer[#1]}%
-    {\setupcurrentsavebuffer[\c!list=#1,\c!file=#2]}%
+    {\setupcurrentsavebuffer[\c!list={#1},\c!file=#2]}%
   \ctxcommand{savebuffer("\directsavebufferparameter\c!list","\directsavebufferparameter\c!file","\directsavebufferparameter\c!prefix")}%
   \endgroup}

Wolfgang



More information about the dev-context mailing list