ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* getbuffer now fails
@ 2008-03-23 11:36 Hans van der Meer
  2008-03-23 14:41 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Hans van der Meer @ 2008-03-23 11:36 UTC (permalink / raw)
  To: NTG ConTeXt

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.
<inserted text>
                 \fi
<to be read again>
                    \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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-23 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-23 11:36 getbuffer now fails Hans van der Meer
2008-03-23 14:41 ` Wolfgang Schuster

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).