From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Global match data considered harmful Date: Tue, 11 May 2010 09:54:24 -0400 Message-ID: References: <87y6frqje2.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1273586112 29661 80.91.229.12 (11 May 2010 13:55:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 May 2010 13:55:12 +0000 (UTC) Cc: Juanma Barranquero , Lennart Borgman , Emacs-Devel devel To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 11 15:55:07 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBpvN-0005xX-GW for ged-emacs-devel@m.gmane.org; Tue, 11 May 2010 15:55:05 +0200 Original-Received: from localhost ([127.0.0.1]:55084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBpvM-0004Ra-K5 for ged-emacs-devel@m.gmane.org; Tue, 11 May 2010 09:55:04 -0400 Original-Received: from [140.186.70.92] (port=45619 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBpul-0004Be-R9 for emacs-devel@gnu.org; Tue, 11 May 2010 09:54:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBpuk-0000Ep-8a for emacs-devel@gnu.org; Tue, 11 May 2010 09:54:27 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31206 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBpuk-0000Ei-6V for emacs-devel@gnu.org; Tue, 11 May 2010 09:54:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEABv+6EtLd+Zs/2dsb2JhbACeKnK7J4UQBIwx X-IronPort-AV: E=Sophos;i="4.53,207,1272859200"; d="scan'208";a="63896110" Original-Received: from 75-119-230-108.dsl.teksavvy.com (HELO pastel.home) ([75.119.230.108]) by ironport2-out.pppoe.ca with ESMTP; 11 May 2010 09:54:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id E54ED80B1; Tue, 11 May 2010 09:54:24 -0400 (EDT) In-Reply-To: <87y6frqje2.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Tue, 11 May 2010 11:09:25 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124704 Archived-At: >> The rule for where to place a save-match-data is: >> around the code run between "looking-at" and "match-string-no-properties". > *snort* I'm with Juanma. I'm not sure what that means. > This is just so wrong, you know. Not returning the match data, instead > storing it in a global object, is arguably the worst design decision > in all of Emacs. Preaching to the choir, eh? [ Well "the worst" I don't know: it's not like there's a shortage of global-abuse in Emacs. ] Stefan