From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58250 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \define... Date: Tue, 20 Apr 2010 05:41:36 +0200 Message-ID: <4BCD2270.5090401@googlemail.com> References: <4BCC8DF2.50006@gmail.com> <4BCCA0F2.8080802@googlemail.com> <20100419191533.GA1322@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271734940 28916 80.91.229.12 (20 Apr 2010 03:42:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2010 03:42:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 20 05:42:19 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O44Lq-0006g6-IM for gctc-ntg-context-518@m.gmane.org; Tue, 20 Apr 2010 05:42:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B834C9CE5; Tue, 20 Apr 2010 05:42:17 +0200 (CEST) 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 Skl9l6PIXU2C; Tue, 20 Apr 2010 05:42:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F205DC9CA8; Tue, 20 Apr 2010 05:41:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C35E8C9CA8 for ; Tue, 20 Apr 2010 05:41:55 +0200 (CEST) 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 jpj-DBhF2LMl for ; Tue, 20 Apr 2010 05:41:44 +0200 (CEST) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by balder.ntg.nl (Postfix) with ESMTP id 67D1FC9BB5 for ; Tue, 20 Apr 2010 05:41:44 +0200 (CEST) Original-Received: by fg-out-1718.google.com with SMTP id e21so2230712fga.2 for ; Mon, 19 Apr 2010 20:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=c4ppIUq1fuJ0DTJnqNWudUHxXVLFf0BKhb22XOu/yNc=; b=DKcqUCOMxVRG5UxzSucxVAxLU42hqIbmbvmijJDqVdsMHyjI+naPamt0LGrzCmY/Gt cMONHLezUHYTiMzTayErkYH48VziqLebJvBASeXleD06kj7W5En6uUbMsJZQR3dDmun/ CEJkhzxjVjymG71+Q+sMXG1xX+/4mkXM8tWPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=cGHvgpq+pNi7DaGCguk2WOUNet27PP8PA4fpqYzSPZLZzSwwuEu9ezn+zXQT4JLwkN 3Jh3jNq+pQRjt9nyIAj5pjgxVStAhiOITCpP76Xt9Qke72LF3rMZFy0FfVe6fve10Nqv 3WrIU/UuvIpQuYenWm9Iz4dFmDt2lB5v2isws= Original-Received: by 10.87.76.7 with SMTP id d7mr5116651fgl.65.1271734899383; Mon, 19 Apr 2010 20:41:39 -0700 (PDT) Original-Received: from [192.168.2.23] (p5B294F08.dip.t-dialin.net [91.41.79.8]) by mx.google.com with ESMTPS id 3sm5216918fge.25.2010.04.19.20.41.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 20:41:38 -0700 (PDT) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 In-Reply-To: <20100419191533.GA1322@gaston.couberia.bzh> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:58250 Archived-At: Am 19.04.10 21:15, schrieb Peter M=FCnster: > On Mon, Apr 19 2010, Wolfgang Schuster wrote: > = >> \starttext >> \define\hans{hans} >> \define\hans{taco} >> \stoptext >> >> the output now is 'hans' because \define checks whether a command with t= he >> name \hans is already defined >> = > Hello Wolfgang, > > Did you test it? The output is "taco" here on my system: > MTXrun | current version: 2010.04.16 21:08 > = no i didn't test it context has two different versions of \define, there is one in = syst-ext.mkii/syst-aux.mkiv which has no parameters but prevents you from overwriting a existing = command (there \redefine with allows this) and another one in core-sys.mkii/mkiv which replace = the first one and has support for parameters but replace on the other side the old definition = (you get only the terminal message) the question is, which behavious is correct, replace the old macro or = keep it, in my opinion \define should leave the old definition untouced and \redefine = should be used in this case (but we need a version with parameters) Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________