From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48555 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: beta: warning messages Date: Thu, 19 Mar 2009 15:36:33 +0100 Message-ID: <49C25871.3020002@wxs.nl> References: <49C2547F.8050608@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237473497 23991 80.91.229.12 (19 Mar 2009 14:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 14:38:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 19 15:39:34 2009 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 1LkJOK-0001a1-7Z for gctc-ntg-context-518@m.gmane.org; Thu, 19 Mar 2009 15:38:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 600861FBB5; Thu, 19 Mar 2009 15:37:13 +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 04820-02; Thu, 19 Mar 2009 15:36:44 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA08C1FB39; Thu, 19 Mar 2009 15:36:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 569F71FB3C for ; Thu, 19 Mar 2009 15:36:42 +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 23107-05 for ; Thu, 19 Mar 2009 15:36:35 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 0F0AE1FB39 for ; Thu, 19 Mar 2009 15:36:35 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2JEaYXZ017006 for ; Thu, 19 Mar 2009 15:36:34 +0100 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 20947-1840426 for ; Thu, 19 Mar 2009 15:36:34 +0100 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <49C2547F.8050608@gmx.net> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 196129266 - 5c69671620e0 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:48555 Archived-At: Peter Rolf wrote: > Hi Hans, > > looks my knowledge of TeX is holey like a Leerdammer. Can you tell me > why you fire a warning for already defined, non-global allocated > registers? > Some of them make sense here but even a grouped (and local allocated) > register gives such a warning. > > warning : \count \OLDpdfcompresslevel is already defined (\relax > it first) > > \def\disablePDFcompression% > {\bgroup > % \let\OLDpdfcompresslevel\relax > \newcount\OLDpdfcompresslevel > \OLDpdfcompresslevel\pdfcompresslevel > \pdfcompresslevel\zerocount\relax} > \def\allowPDFcompression% > {\pdfcompresslevel\OLDpdfcompresslevel\egroup} first of all, there is a command \nopdfcompression so you don't need the hackery then, \newcount is global and the latest releases of context catch redefinitions so: - either move the \newcount outside the macro - or relax it first (which will spoil a counter then) (the whole allocator has been rewritten and is no longer doing it in the traditional tex way, at least not with respect to where things end up; cleaner this way) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________