Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Fri, 7 Mar 2008 21:49:46 +0100 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m27KniY7032425 for ; Fri, 7 Mar 2008 21:49:45 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id m27Kj8Pi005108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 7 Mar 2008 21:45:09 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id m27G09Eo016170; Fri, 7 Mar 2008 21:45:05 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 220878 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 7 Mar 2008 21:45:05 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id m27Kj5Ip028393 for ; Fri, 7 Mar 2008 21:45:05 +0100 Received: from mail-in-13.arcor-online.net (mail-in-13.arcor-online.net [151.189.21.53]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id m27Ke1tb008020 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 7 Mar 2008 21:40:06 +0100 Received: from mail-in-18-z2.arcor-online.net (mail-in-18-z2.arcor-online.net [151.189.8.35]) by mail-in-13.arcor-online.net (Postfix) with ESMTP id E550D1E4F3D for ; Fri, 7 Mar 2008 21:44:44 +0100 (CET) Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mail-in-18-z2.arcor-online.net (Postfix) with ESMTP id CA6A35100F9 for ; Fri, 7 Mar 2008 21:44:44 +0100 (CET) Received: from lola.goethe.zz (dslb-084-061-103-190.pools.arcor-ip.net [84.61.103.190]) by mail-in-14.arcor-online.net (Postfix) with ESMTP id A101E1878B9 for ; Fri, 7 Mar 2008 21:44:44 +0100 (CET) Received: by lola.goethe.zz (Postfix, from userid 1002) id 084D91C5682B; Fri, 7 Mar 2008 21:44:44 +0100 (CET) References: <85wsoeto1k.fsf@lola.goethe.zz> <18385.42387.268037.81145@morse.mittelbach-online.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: ClamAV 0.92.1/6166/Fri Mar 7 17:36:07 2008 on mail-in-14.arcor-online.net X-Virus-Status: Clean Message-ID: <851w6mtgar.fsf@lola.goethe.zz> Date: Fri, 7 Mar 2008 21:44:44 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: David Kastrup Subject: Re: A really, really bad bug. To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <18385.42387.268037.81145@morse.mittelbach-online.de> (Frank Mittelbach's message of "Fri, 7 Mar 2008 21:29:07 +0100") Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -2.464 () BAYES_00,FORGED_RCVD_HELO X-Scanned-By: MIMEDefang 2.64 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 07 Mar 2008 20:49:46.0722 (UTC) FILETIME=[C74BFC20:01C88094] Status: R X-Status: X-Keywords: X-UID: 5175 --=-=-= Frank Mittelbach writes: > well, you seem to be the first person getting into trouble with this, > but that doesn't mean one shouldn't fix it. 5000 labels is easy to reach if you are using the label mechanism extensively. > I don't really mind either of the three solutions (provided none of > the kills the regression tests for 2e) but personally I would simply > drop the group unless somebody can give me a good reason why it could > be needed in a certain situation. Other code checking the definition of the current label? Or something? No idea. Maybe to keep the effect of \tmpswawhatever local? Otherwise, here is what I would propose (since it mimics a definition elsewhere with regard to label save stack buildup in ltxref.dtx). --=-=-= Content-Type: text/x-patch Content-Disposition: attachment diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx index 40f283c..b2d35c0 100644 --- a/base/ltmiscen.dtx +++ b/base/ltmiscen.dtx @@ -263,9 +263,9 @@ % % \begin{macro}{\@testdef} % \begin{macrocode} -\def\@testdef #1#2#3{% +\def\@testdef #1#2#3{{% \def\reserved@a{#3}\expandafter \ifx \csname #1@#2\endcsname - \reserved@a \else \@tempswatrue \fi} + \reserved@a \else \aftergroup\@tempswatrue \fi}} % \end{macrocode} % \end{macro} % --=-=-= The "only" problem with that is that it breaks Babel (which checks for the old definition). Babel can be fixed in the obvious way by checking for the changed definition and changing its own replacement. However, BABEL IS NOT IN THE SVN REPOSITORY AND DISTRIBUTED SEPARATELY. ARRRRGHH!!!!! Obviously, the change needs to be made simultaneously. PLEASE, PLEASE, PLEASE, Johannes, can you submit Babel to the LaTeX repository or send your repo to somebody who can? -- David Kastrup, Kriemhildstr. 15, 44793 Bochum --=-=-=--