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: Thu, 06 Jul 2006 18:22:49 -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 1152224615 18638 80.91.229.2 (6 Jul 2006 22:23:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 22:23:35 +0000 (UTC) Cc: emacs-devel@gnu.org, Richard Stallman , "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 07 00:23:13 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 1FycFM-0000KQ-LE for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 00:22:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FycFL-0004Ts-UV for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 18:22:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FycFB-0004Sf-GB for emacs-devel@gnu.org; Thu, 06 Jul 2006 18:22:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FycF9-0004Qs-Eq for emacs-devel@gnu.org; Thu, 06 Jul 2006 18:22:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FycF9-0004Qn-BG for emacs-devel@gnu.org; Thu, 06 Jul 2006 18:22:43 -0400 Original-Received: from [209.226.175.184] (helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FycFN-0002ge-7W; Thu, 06 Jul 2006 18:22:57 -0400 Original-Received: from localhost ([70.55.80.219]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060706222238.UGCC10262.tomts22-srv.bellnexxia.net@localhost>; Thu, 6 Jul 2006 18:22:38 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 24E2C8CDE; Thu, 6 Jul 2006 18:22:49 -0400 (EDT) Original-To: Lars Hansen In-Reply-To: <44A8EA48.5040602@soem.dk> (Lars Hansen's message of "Mon, 03 Jul 2006 11:58:32 +0200") 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:56670 Archived-At: >>> + (save-match-data >> Why? > The purpose of string-strip is to strip the string, nothing else. > Changing match-data is not an intended side effect, so it should be > avoided IMO. Given that it takes a regexp as argument, I'd say that it *is* expected to mess the match data. Stefan