From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41302 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Buffers and commands with optional arguments Date: Mon, 2 Jun 2008 08:42:50 +0200 Message-ID: <115224fb0806012342i147860e1x27fd8e1c5217c57d@mail.gmail.com> References: <115224fb0805310309w5b33be83h1e9b915c96cba174@mail.gmail.com> <48412DB9.80306@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212389063 19473 80.91.229.12 (2 Jun 2008 06:44:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 06:44:23 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 02 08:45:04 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1K33mx-00035G-D4 for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jun 2008 08:45:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4731C1FD26; Mon, 2 Jun 2008 08:44:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10957-02-9; Mon, 2 Jun 2008 08:43:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E636D1FD0A; Mon, 2 Jun 2008 08:43:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9BD4F1FD08 for ; Mon, 2 Jun 2008 08:43:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11505-01-9 for ; Mon, 2 Jun 2008 08:42:53 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.157]) by ronja.ntg.nl (Postfix) with ESMTP id 5CB501FC5A for ; Mon, 2 Jun 2008 08:42:51 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so791547ywm.74 for ; Sun, 01 Jun 2008 23:42:50 -0700 (PDT) Original-Received: by 10.151.50.11 with SMTP id c11mr354082ybk.127.1212388970055; Sun, 01 Jun 2008 23:42:50 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Sun, 1 Jun 2008 23:42:50 -0700 (PDT) In-Reply-To: <48412DB9.80306@wxs.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:41302 Archived-At: On Sat, May 31, 2008 at 12:51 PM, Hans Hagen wrote: > Wolfgang Schuster wrote: >> Hi Hans, >> >> I got yesterday a bug report for my letter module if the \startletter >> command takes no arguments. >> >> The following example show the problem without the module. >> >> \def\startletter >> {\dosingleempty\dostartletter} >> >> \def\dostartletter[#1]% >> {\dostartbuffer[letter][startletter][stopletter]} > > either use \definebuffer, or do Did not work in my case. > \def\startletter > {\bgroup\obeylines\dosingleempty\dostartletter} > > \def\dostartletter[#1]% > {\egroup\dostartbuffer[letter][startletter][stopletter]} This has the unwanted side effect I expected to allow the argument only on the same line as the \startletter command or is otherwise shown in the output. I will now include a modified version from the \flushbufferline macro with my package in will look for the first person with a problem. Greetings Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________