From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79508 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost instance mechanism broken Date: Sun, 25 Nov 2012 18:40:01 +0100 Message-ID: <57B8BE1A-E271-4ABD-9970-C3567267162E@gmail.com> References: <20121125181144.72f960cb@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353865213 14399 80.91.229.3 (25 Nov 2012 17:40:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2012 17:40:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 25 18:40:26 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TcgBt-0002C0-1M for gctc-ntg-context-518@m.gmane.org; Sun, 25 Nov 2012 18:40:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D05510204; Sun, 25 Nov 2012 18:40:10 +0100 (CET) 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 SxP7ymWZFMmY; Sun, 25 Nov 2012 18:40:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 79A6C101F6; Sun, 25 Nov 2012 18:40:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B57C6101F6 for ; Sun, 25 Nov 2012 18:40:05 +0100 (CET) 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 K-kkltFXUDyZ for ; Sun, 25 Nov 2012 18:40:04 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 95293101EE for ; Sun, 25 Nov 2012 18:40:04 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAPHX9vm011228 for ; Sun, 25 Nov 2012 18:33:10 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so5053261bkc.14 for ; Sun, 25 Nov 2012 09:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=k7o6t8SwVWOFKDMo5cQW7nYKSEOPP28+ikzy0+eByeI=; b=qPte3O0dgK1NPUKp8KFYl4ZoJL9m8Hx/sbY9DsHITjCKNxEwQVHDKS2ssg8zAgR+qh IV5h7hlFNCV2O8l5/hXqgeOqS4BxM9IpiGGoWthJsfX7pcmyRF0tIl1zaauIznbb2kQs xYEtwAvGO8VZMBT/AF6LdvFH5GrMfeEkWDzCd/+Qh+Zm0ddFxGPEeTbhbuTFq4epv2W1 QSk7p4oCykxdh6aVD/+iPC0fYnq1wpxwbCbSdz5cf55mnMs0Jv9QZOJpGXVtFFUDVP2Q vDpKOcnEZDP3z5YcbF+yw9MC/tAysssSZ0BqzKQGeP6B5qXxHBIpTX8s/hq0v/MKXC6K AyPA== Original-Received: by 10.204.12.203 with SMTP id y11mr2770811bky.27.1353865203301; Sun, 25 Nov 2012 09:40:03 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d057932.pool.mediaWays.net. [77.5.121.50]) by mx.google.com with ESMTPS id i20sm6606203bkw.5.2012.11.25.09.40.02 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Nov 2012 09:40:02 -0800 (PST) In-Reply-To: <20121125181144.72f960cb@homerow> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIrRxaRp - 22fa0a53a371 - 20121125 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:79508 Archived-At: Am 25.11.2012 um 18:11 schrieb Marco Patzer : > Hi, > > in one of the last few betas the MetaPost instance > mechanism broke. > > \defineMPinstance > [myinstance] > [metafun] > > \startuseMPgraphic{mympgraphic} > fill fullsquare scaled 1cm withcolor blue; > \stopuseMPgraphic > > \starttext\null > \useMPgraphic{myinstance::mympgraphic} > \stoptext The problem lies in the \uniqueMPgraphic and \useMPgrpahic commands. There is a commented line in each command which is the correct setting and the next line is wrong. \def\meta_unique_page_graphic#1#2% {\meta_begin_graphic_group{#1}% \let\overlaystamp\overlaypagestamp \setupMPvariables[\m_meta_page_prefix:\currentMPgraphicname][#2]% prefix is new here % \getvalue{\??mpgraphic\m_meta_page_prefix:\currentMPgraphicname}{}% \getvalue{\??mpgraphic\m_meta_page_prefix:#1}{}% \meta_end_graphic_group} \def\meta_use_graphic#1#2% {\meta_begin_graphic_group{#1}% \doifsomething{#2}{\setupMPvariables[\currentMPgraphicname][#2]}% %\getvalue{\??mpgraphic\currentMPgraphicname}\empty \getvalue{\??mpgraphic#1}\empty \meta_end_graphic_group} 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________