issue with \savebuffer in LMTX

Dear list, I have the following sample: \startbuffer[x] a \stopbuffer \starttext \savebuffer[x][\jobname-temp.tex, prefix=no] whatever \stoptext Compiling it with current latest (2025.04.01 12:45) LMTX, the saved file name is "x". With current latest MkIV, the saved file name is \jobname-temp.tex. I think this may be a bug. Could anyone confirm this? Many thanks for your help, Pablo

On 2 Apr 2025, at 15:21, Pablo Rodriguez via ntg-context
wrote: \startbuffer[x] a \stopbuffer \starttext \savebuffer[x][\jobname-temp.tex, prefix=no] whatever \stoptext
You're mixing up the syntax styles: if you want to use 'prefix=no' *and* specify a filename then use 'file=' i.e.: \savebuffer[list=x,file=\jobname-temp.tex,prefix=no] Which works for me on latest build. — Bruce Horrocks Hampshire, UK

On 4/2/25 18:47, Bruce Horrocks wrote:
On 2 Apr 2025, at 15:21, Pablo Rodriguez via ntg-context wrote:
\startbuffer[x] a \stopbuffer \starttext \savebuffer[x][\jobname-temp.tex, prefix=no] whatever \stoptext
You're mixing up the syntax styles: if you want to use 'prefix=no' *and* specify a filename then use 'file=' i.e.:> \savebuffer[list=x,file=\jobname-temp.tex,prefix=no]
Many thanks for your help, Bruce. It seems that LMTX is stricter in that particular point now. Pablo

Am 03.04.2025 um 15:58 schrieb Pablo Rodriguez via ntg-context:
On 4/2/25 18:47, Bruce Horrocks wrote:
On 2 Apr 2025, at 15:21, Pablo Rodriguez via ntg-context wrote:
\startbuffer[x] a \stopbuffer \starttext \savebuffer[x][\jobname-temp.tex, prefix=no] whatever \stoptext
You're mixing up the syntax styles: if you want to use 'prefix=no' *and* specify a filename then use 'file=' i.e.:> \savebuffer[list=x,file=\jobname-temp.tex,prefix=no]
Many thanks for your help, Bruce.
It seems that LMTX is stricter in that particular point now.
\savebuffer get another input method which is a combination of \savebuffer[<buffer>][<filename>] and \savebuffer[list=<buffer>,file=<filename>] in the form \savebuffer[<buffer>][file=<filename>] When you now have a = in the second argument ConTeXt uses the third form which would previously result in the first form. Wolfgang
participants (3)
-
Bruce Horrocks
-
Pablo Rodriguez
-
Wolfgang Schuster