ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henri Menke <henrimenke@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Perhaps missing braces in buff-ini.mkiv?
Date: Tue, 6 Sep 2016 09:05:47 +0200	[thread overview]
Message-ID: <b171a15c-2e4b-0372-7c92-9a37370a0de1@gmail.com> (raw)
In-Reply-To: <bb5d8805-7c42-24d0-a57a-adca3e41acbd@gmail.com>

Bump

On 08/09/2016 10:54 AM, Henri Menke wrote:
> Dear list,
> 
> it seems as if there are braces missing in the definition of \buff_save around #2.
> 
> \def\buff_save[#1][#2]%
>   {...
>     {\setupcurrentsavebuffer[\c!list={#1},\c!file=#2]}%
>   ...}
> 
> I think they are missing, because it makes the following work, even though arguments and key-value arguments shouldn't be mixed up.
> 
> \startbuffer[hash]
> foo
> \stopbuffer
> \savebuffer[hash][hello.txt,prefix=no]
> \starttext
> \stoptext
> 
> I think you should either make a third argument for a key-value list or just make the second argument the key-value list.  Then users could input \savebuffer[hash][file=hello.txt,prefix=no].
> 
> Cheers, Henri
> 

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-09-06  7:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09  8:54 Henri Menke
2016-09-06  7:05 ` Henri Menke [this message]
2016-09-06  8:36   ` Hans Hagen
2016-09-06 18:45     ` Henri Menke
2016-09-06 20:03       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b171a15c-2e4b-0372-7c92-9a37370a0de1@gmail.com \
    --to=henrimenke@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).