From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52025 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: I can't change startitemize[n]--> startitemize[1] Date: Thu, 23 Jul 2009 17:11:52 +0200 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: multipart/mixed; boundary="===============0590162084==" X-Trace: ger.gmane.org 1248361984 24043 80.91.229.12 (23 Jul 2009 15:13:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jul 2009 15:13:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 23 17:12:57 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 1MTzya-00032p-OV for gctc-ntg-context-518@m.gmane.org; Thu, 23 Jul 2009 17:12:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3AF7D1FBCC; Thu, 23 Jul 2009 17:12:56 +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 09028-02-12; Thu, 23 Jul 2009 17:12:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 038C21FB8C; Thu, 23 Jul 2009 17:12:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D1F201FB8C for ; Thu, 23 Jul 2009 17:12:12 +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 09028-02-11 for ; Thu, 23 Jul 2009 17:11:54 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 7F7101FB6B for ; Thu, 23 Jul 2009 17:11:54 +0200 (CEST) Original-Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com [209.85.219.217]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6NFBr3l027766 for ; Thu, 23 Jul 2009 17:11:54 +0200 Original-Received: by ewy17 with SMTP id 17so1058465ewy.2 for ; Thu, 23 Jul 2009 08:11:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=o4lKnEzxaNsanypklQJz0+6Jvyd3BUm+hItslsTcXK8=; b=TvE2539Zteaw3Ss0xdhly3Sgr8ppEBBIvZrSgJDqXO63fLQ67AABzLgxIn2cuMkHIe OzEH+R7rP4xwpf1y3lP4nU7nEeWKPE4opspidKiXCV9XQcEHMdqClbj0otF/BAq8H27s 8o5Go+w12776ySuNf4c3CcUZO3UIK6/5uPHtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TX6u0iIy+dKJ28hpAXl1S5ZkxjmVAcWeRmEej5/O8bEKmiGG6Qq3o7nW+k2+9DN5hh UBZ0Bv9UDJx9UKdPqAGFd+/DNbMaedwUHKL3B/+3BdYJZ/9Djhw3YF70wPo0Om555wQ6 qtQQ1UqukWhq8KcglVYHVbZklf/i31VQEdvbk= Original-Received: by 10.216.72.209 with SMTP id t59mr684604wed.27.1248361912287; Thu, 23 Jul 2009 08:11:52 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.217; 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: 265032333 - 36d134e52712 - 20090723 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:52025 Archived-At: --===============0590162084== Content-Type: multipart/alternative; boundary=00504502c676554fe4046f60e81e --00504502c676554fe4046f60e81e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Thu, Jul 23, 2009 at 5:05 PM, Aditya Mahajan wrote: > 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. > yes, it's equivalent -- luigi --00504502c676554fe4046f60e81e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jul 23, 2009 at 5:05 PM, Aditya = Mahajan <adityam@= umich.edu> wrote:
On Thu, 23 Jul 2009, luigi scarso wrote:<= br>
On Thu, Jul 23, 2009 at 4:37 PM, Hans Hagen <pragma@wxs.nl> wrote:

Xan wrote:

=C2=A0Really, 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 testi= ng
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 =C2=A0redefinition of macros in 0,1

by 3) should be no collision between 0,1,2
=C2=A0

I think an easier thing to do will be to follow latex's style of \newco= mmand and \renewcommand. That is, all \definecommands should check if the m= acro 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.
yes, it's equivalent


<= br clear=3D"all">
--
luigi

--00504502c676554fe4046f60e81e-- --===============0590162084== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0590162084==--