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: string-strip Date: Fri, 07 Jul 2006 23:59:14 -0400 Message-ID: References: <449266B2.7030500@easy-emacs.de> <4496E618.8090401@soem.dk> <32964.128.165.123.239.1150741470.squirrel@webmail.lanl.gov> <449796E7.9090808@soem.dk> <44984C66.8090006@easy-emacs.de> <17560.20884.675268.166167@kahikatea.snap.net.nz> <4499782D.4020408@soem.dk> <44A26D7E.1030000@soem.dk> <873bdkvvt0.fsf-monnier+emacs@gnu.org> <44A8EA48.5040602@soem.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152331169 23912 80.91.229.2 (8 Jul 2006 03:59:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Jul 2006 03:59:29 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 08 05:59:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fz3yP-0001u8-G3 for ged-emacs-devel@m.gmane.org; Sat, 08 Jul 2006 05:59:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fz3yP-0006TT-4w for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 23:59:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fz3yD-0006Ri-4Y for emacs-devel@gnu.org; Fri, 07 Jul 2006 23:59:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fz3yB-0006Qy-Fr for emacs-devel@gnu.org; Fri, 07 Jul 2006 23:59:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fz3yB-0006Qv-AO for emacs-devel@gnu.org; Fri, 07 Jul 2006 23:59:03 -0400 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fz3yh-0005T0-L3; Fri, 07 Jul 2006 23:59:35 -0400 Original-Received: from localhost ([70.55.141.234]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060708035859.NOSG27612.tomts16-srv.bellnexxia.net@localhost>; Fri, 7 Jul 2006 23:58:59 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 8CCF38CDE; Fri, 7 Jul 2006 23:59:14 -0400 (EDT) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 07 Jul 2006 15:31:16 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:56770 Archived-At: > Given that it takes a regexp as argument, I'd say that it *is* expected to > mess the match data. > It isn't useful for the function to provide anything in the match > data. And not saving the match data creates a pitfall that people > won't generally expect. Therefore, it should save the match data. Most elisp functions don't bother to save the match data. That's because it is costly to do and rarely useful. Stefan