From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52023 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: I can't change startitemize[n]--> startitemize[1] Date: Thu, 23 Jul 2009 11:05:14 -0400 (EDT) Message-ID: References: <4A685239.1090601@telefonica.net> <99771342-5FD0-4A61-97F8-E49B383CD6EE@gmail.com> <4A686E0D.7000505@wxs.nl> <4A6874AB.2000301@telefonica.net> <4A6875B3.6090200@wxs.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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248361787 23386 80.91.229.12 (23 Jul 2009 15:09:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 15:09:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 23 17:09:41 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 1MTzvP-0001QN-Hj for gctc-ntg-context-518@m.gmane.org; Thu, 23 Jul 2009 17:09:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A0B791FC09; Thu, 23 Jul 2009 17:09:32 +0200 (CEST) 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 09064-03-5; Thu, 23 Jul 2009 17:08:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 352C31FBD0; Thu, 23 Jul 2009 17:07:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C59901FBC6 for ; Thu, 23 Jul 2009 17:07:28 +0200 (CEST) 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 08988-02-14 for ; Thu, 23 Jul 2009 17:06:29 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id ACB731FC21 for ; Thu, 23 Jul 2009 17:05:37 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6NF5ZSW032627 for ; Thu, 23 Jul 2009 17:05:36 +0200 Original-Received: FROM [192.168.2.8] (c-71-192-164-42.hsd1.ct.comcast.net [71.192.164.42]) By hackers.mr.itd.umich.edu ID 4A687C3E.298E1.24019 ; Authuser adityam; 23 Jul 2009 11:05:34 EDT In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 265029090 - 3795d9ee9d46 - 20090723 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:52023 Archived-At: On Thu, 23 Jul 2009, luigi scarso wrote: > On Thu, Jul 23, 2009 at 4:37 PM, Hans Hagen wrote: > >> Xan wrote: >> >> Really, I did not know that. It's a messy thing that we could not define >>> what we like ;-) >>> >> >> it's the nature of a tex macro package; ok, i can add some strict testing >> for in in mkiv but even then it might just be that someone who knows th >> einternals (like wolfgang or wolfgang or wolfgang) wants to overload >> something built in by something better >> > why not discipline ? > > I mean something like > 0) context macro are ok > 1) \usemodule[foo] are ok (no collision with macros in 0) > 2) define your macros inside > \startPrivate[namespace] > ... > \stopPrivate > 3) explicit redefinition of macros in 0,1 > > by 3) should be no collision between 0,1,2 I think an easier thing to do will be to follow latex's style of \newcommand and \renewcommand. That is, all \definecommands should check if the macro is previously defined or not. If it is defined, issue a warning or an error. And maybe have some hook to disable the warning/error for those who know what they are doing. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________