From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70300 Path: news.gmane.org!not-for-mail From: Daniel Schopper Newsgroups: gmane.comp.tex.context Subject: Re: trailing spaces in macro argument Date: Tue, 26 Jul 2011 23:28:46 +0200 Message-ID: <4E2F318E.6060908@aon.at> References: <4E2F1408.6040807@aon.at> <500FA126-DCAC-4F6F-8D73-D801756E8718@googlemail.com> <4E2F2A51.9070500@aon.at> <12A62EDC-3A9D-496F-BCF7-0F8CB4862160@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311715739 16976 80.91.229.12 (26 Jul 2011 21:28:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jul 2011 21:28:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 26 23:28:55 2011 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 1QlpBP-000645-AD for gctc-ntg-context-518@m.gmane.org; Tue, 26 Jul 2011 23:28:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 334DACAE96; Tue, 26 Jul 2011 23:28:54 +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 WrN5qSvu9ujB; Tue, 26 Jul 2011 23:28:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53738CAE88; Tue, 26 Jul 2011 23:28:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 50AACCAE88 for ; Tue, 26 Jul 2011 23:28:50 +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 NgRYQvWAiut8 for ; Tue, 26 Jul 2011 23:28:48 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 82F71CAE87 for ; Tue, 26 Jul 2011 23:28:48 +0200 (CEST) Original-Received: from email.aon.at (smtpout02.highway.telekom.at [195.3.96.113]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6QLSlxB018889 for ; Tue, 26 Jul 2011 23:28:48 +0200 Original-Received: (qmail 22799 invoked from network); 26 Jul 2011 21:28:47 -0000 Original-Received: from 178-191-191-4.adsl.highway.telekom.at (HELO Daniel-Schoppers-iMac.local) (aon.912045897.daniel@[178.191.191.4]) (envelope-sender ) by smarthub81.res.a1.net (qmail-ldap-1.03) with SMTP for ; 26 Jul 2011 21:28:47 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <12A62EDC-3A9D-496F-BCF7-0F8CB4862160@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=195.3.96.113; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rFcJsL0N - 7ba5788f7553 - 20110726 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:70300 Archived-At: >> So doing \def\removeunwantedspaces{} inside the macro definition = does the trick (although in a barbaric way) > As you don=92t use grouping your redefinition is global and can break = many other things. Of course, I missed that! Adding \bgroup and \egroup right before and = after the \def does make it local and should prevent side effects then, = right? Thanks again=85 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________