From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84047 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: buffers.prepend() (was: letter module: File ended while scanning use of \buff_gobble) Date: Sun, 01 Sep 2013 14:30:29 +0200 Message-ID: <87sixou3kq.fsf_-_@micropit.couberia.selfip.net> References: <87y5e3qnd5.fsf@micropit.couberia.selfip.net> <7E754AE0-FFF6-4C04-9DD2-0C7FE764FE2E@gmail.com> <87wqn0u68b.fsf@micropit.couberia.selfip.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378125395 8423 80.91.229.3 (2 Sep 2013 12:36:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Sep 2013 12:36:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 02 14:36:39 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGTN0-000279-CC for gctc-ntg-context-518@m.gmane.org; Mon, 02 Sep 2013 14:36:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 759021023D; Mon, 2 Sep 2013 14:34:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4s0G9i0UaYUu; Mon, 2 Sep 2013 14:34:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0ABFF10234; Mon, 2 Sep 2013 14:34:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B27A10203 for ; Mon, 2 Sep 2013 14:34:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PmUb7sbQAumC for ; Mon, 2 Sep 2013 14:34:34 +0200 (CEST) Original-Received: from submission1-ams.mf.surf.net (submission1-ams.mf.surf.net [192.87.102.68]) by balder.ntg.nl (Postfix) with ESMTP id E8CDD1020A for ; Mon, 2 Sep 2013 14:34:31 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams-v6.mf.surf.net [IPv6:2001:610:1:80ab:192:87:102:70]) by submission1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r81CZUrg031739 for ; Sun, 1 Sep 2013 14:35:32 +0200 Original-Received: from smtp.smtpout.orange.fr (smtp05.smtpout.orange.fr [80.12.242.127]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r81CUUxA015598 for ; Sun, 1 Sep 2013 14:30:30 +0200 Original-Received: from micropit.couberia.selfip.net ([2.2.136.209]) by mwinf5d52 with ME id KoWV1m00F4XEmYa03oWW8b; Sun, 01 Sep 2013 14:30:30 +0200 Original-Received: by micropit.couberia.selfip.net (Postfix, from userid 1000) id 9806EA6173E; Sun, 1 Sep 2013 14:30:29 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: (Wolfgang Schuster's message of "Sun, 1 Sep 2013 14:09:40 +0200") User-Agent: Gnus/5.130008 (=?utf-8?Q?=E7=9C=9F?= Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.127; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QKjMuuzc - 1d429532172c - 20130901 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84047 Archived-At: On Sun, Sep 01 2013, Wolfgang Schuster wrote: > \startrawsetups[letter:section:content] > > Text before the content of the letter. > > \getbuffer[MyLetter] > > Text after the content of the letter. > > \stoprawsetups Yes, thanks! (I forgot about this part, because in my setup it was hidden in another file...) In the meantime I've played with the lua buffers functions: \def\StopLetter{% \ctxlua{buffers.prepend("MyLetter", "START")} \ctxlua{buffers.append("MyLetter", "\\relax STOP")} \placeletter \stoptext} This works also quite well. buffers.prepend() does not yet exist. Hans, could you please add it? It could be perhaps useful one day. -- Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________