From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39608 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: getbuffer now fails Date: Sun, 23 Mar 2008 15:41:09 +0100 Message-ID: <20080323154109.1aa86531.schuster.wolfgang@googlemail.com> References: <9AA45BC6-36B5-403C-867C-28769E95214D@science.uva.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 1206286428 2368 80.91.229.12 (23 Mar 2008 15:33:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2008 15:33:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 23 16:34:18 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 1JdSDB-0005WX-9I for gctc-ntg-context-518@m.gmane.org; Sun, 23 Mar 2008 16:34:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECF261FBE8; Sun, 23 Mar 2008 16:33:40 +0100 (CET) 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 21314-01-32; Sun, 23 Mar 2008 16:33:02 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E594D1FC91; Sun, 23 Mar 2008 16:22:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BA001FC90 for ; Sun, 23 Mar 2008 16:22:48 +0100 (CET) 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 21315-01-14 for ; Sun, 23 Mar 2008 16:22:02 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by ronja.ntg.nl (Postfix) with ESMTP id 26F701FE90 for ; Sun, 23 Mar 2008 15:41:15 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id e12so2123373fga.8 for ; Sun, 23 Mar 2008 07:41:14 -0700 (PDT) Original-Received: by 10.82.112.3 with SMTP id k3mr14241178buc.32.1206283274768; Sun, 23 Mar 2008 07:41:14 -0700 (PDT) Original-Received: from rover ( [91.41.93.166]) by mx.google.com with ESMTPS id a37sm8732747fkc.3.2008.03.23.07.41.12 (version=SSLv3 cipher=OTHER); Sun, 23 Mar 2008 07:41:13 -0700 (PDT) In-Reply-To: <9AA45BC6-36B5-403C-867C-28769E95214D@science.uva.nl> X-Mailer: Sylpheed 2.5.0beta1 (GTK+ 2.10.14; i686-pc-mingw32) 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:39608 Archived-At: Hi Hans, Could you send us the example and the version of your ConTeXt installation. It would be also interesting is you use MkII or MkIV to process your files. Wolfgang On Sun, 23 Mar 2008 12:36:47 +0100 Hans van der Meer wrote: > I had this code working (it was in an article I submitted for NTG-MAPS > a while ago, july 2007). Now this same code gives an error on getbuffer. > What happened to getbuffer? Is it possible a \fi has disappeared in > the getbuffer code between now and last july? Is there a quick patch > because now I get stuck on work that has to be finished. > > The error message from TeX: > ! Incomplete \ifx; all text was ignored after line 6. > > \fi > > \relax > \dodoreadfile ...d \relax \fi \dodoreadfileindeed > \relax \the > \everyafterrea... > > \mkdobuffer #1->\beginrestorecatcodes #1 > \endrestorecatcodes > \dodobuffer ...dcsname \else #2\fi }\mkdobuffer #1 > \popmacro > \currentbuffer > \dodogetbuffer ...}\dobuffer {16}{#2}\mkgetbuffer > \getvalue {\??bu > #1\c!after } > ... > l.111 \question[number=1][buffer]{\getbuffer} > > The relevant part of the code, not working is the call to \@exmbuffer: > ... > \doifelse{#2}{\v!buffer}% > {\def\filename{buffer}\def\thefile{#3}\let\@@exminput\@exmbuffer}% > {.....}% > \@@exminput\thefile > \endgroup} > % reading the file better outside the doif > \def\@exminput#1{\input#1\relax} > \def\@exmbuffer#1{#1} > > Help is appreciated. > > Hans van der Meer ___________________________________________________________________________________ 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 ___________________________________________________________________________________