From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39605 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: getbuffer now fails Date: Sun, 23 Mar 2008 12:36:47 +0100 Message-ID: <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 (Apple Message framework v919.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206282734 16764 80.91.229.12 (23 Mar 2008 14:32:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Mar 2008 14:32:14 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 23 15:32:44 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 1JdRFa-0004I4-HV for gctc-ntg-context-518@m.gmane.org; Sun, 23 Mar 2008 15:32:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 19C581FE41; Sun, 23 Mar 2008 15:32:04 +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 16806-10-3; Sun, 23 Mar 2008 15:31:12 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D0F321FCDB; Sun, 23 Mar 2008 14:29:13 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1171E20044 for ; Sun, 23 Mar 2008 14:29:11 +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 10847-08-7 for ; Sun, 23 Mar 2008 14:28:32 +0100 (CET) Original-Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by ronja.ntg.nl (Postfix) with ESMTP id C73BB1FC90 for ; Sun, 23 Mar 2008 12:37:16 +0100 (CET) Original-Received: from [192.168.1.78] (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by smtp-vbr17.xs4all.nl (8.13.8/8.13.8) with ESMTP id m2NBbB5a049749 for ; Sun, 23 Mar 2008 12:37:16 +0100 (CET) (envelope-from hansm@science.uva.nl) X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: by XS4ALL Virus Scanner 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:39605 Archived-At: 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 ___________________________________________________________________________________