From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: find-file-noselect needs save-match-data Date: Sun, 10 Jun 2007 08:11:47 +0800 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1181434321 28399 80.91.229.12 (10 Jun 2007 00:12:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2007 00:12:01 +0000 (UTC) Cc: rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: herberteuler@hotmail.com, rudalics@gmx.at, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 10 02:11:59 2007 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.50) id 1HxB2F-0003si-8O for ged-emacs-devel@m.gmane.org; Sun, 10 Jun 2007 02:11:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxB2E-0003KV-GG for ged-emacs-devel@m.gmane.org; Sat, 09 Jun 2007 20:11:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HxB2B-0003Ji-L7 for emacs-devel@gnu.org; Sat, 09 Jun 2007 20:11:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HxB29-0003Dg-0M for emacs-devel@gnu.org; Sat, 09 Jun 2007 20:11:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HxB28-0003DS-Sf for emacs-devel@gnu.org; Sat, 09 Jun 2007 20:11:52 -0400 Original-Received: from bay0-omc2-s21.bay0.hotmail.com ([65.54.246.157]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HxB27-0001Nb-Qk; Sat, 09 Jun 2007 20:11:52 -0400 Original-Received: from hotmail.com ([65.55.154.107]) by bay0-omc2-s21.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sat, 9 Jun 2007 17:11:50 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 9 Jun 2007 17:11:50 -0700 Original-Received: from 65.55.154.123 by by143fd.bay143.hotmail.msn.com with HTTP; Sun, 10 Jun 2007 00:11:47 GMT X-Originating-IP: [221.223.221.161] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: X-OriginalArrivalTime: 10 Jun 2007 00:11:50.0672 (UTC) FILETIME=[F15FF100:01C7AAF3] X-detected-kernel: Windows 2000 SP4, XP SP1+ 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:72557 Archived-At: >Since most applications do not use the match data in practice, I think >if an application use the match data, it should require it explicitly. >I.e., please take a look at the following: > > ;; Normal applications (no use of match data). > (if (string-match "foo" bar) > ;; True branch. > ;; False branch.) > (foo-bar) > > ;; Applications that use match-data. > (if (string-match "foo" bar) > (with-match-data (match-data) > ;; True branch.) > ;; No need to use `with-match-data' here, since there is no > ;; match data. > ;; False branch.) > (foo-bar) And of course functions like `string-match' do not set match data by default, as if `inhibit-match-data' is turned on by default. Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/