From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: find-file-noselect needs save-match-data Date: Sun, 17 Jun 2007 06:39:36 +0900 Message-ID: <87ejkbshnr.fsf@catnip.gol.com> References: <87k5ueq23m.fsf@kfs-lx.testafd.dk> <87myz8c10t.fsf@jurta.org> <18030.3441.204697.244518@rgrjr.dyndns.org> <87zm3515r4.fsf@jurta.org> <85k5u8x2gm.fsf@lola.goethe.zz> <87r6og6czf.fsf@catnip.gol.com> <85bqfkx0i5.fsf@lola.goethe.zz> <87odjjzaoz.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182029990 3852 80.91.229.12 (16 Jun 2007 21:39:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 21:39:50 +0000 (UTC) Cc: juri@jurta.org, schwab@suse.de, Stefan Monnier , miles.bader@necel.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 23:39:49 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 1Hzfzl-0005uB-A5 for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 23:39:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzfzk-0003GE-Sr for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2007 17:39:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hzfzg-0003Fz-Iv for emacs-devel@gnu.org; Sat, 16 Jun 2007 17:39:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hzfze-0003Fn-8D for emacs-devel@gnu.org; Sat, 16 Jun 2007 17:39:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzfze-0003Fk-2n for emacs-devel@gnu.org; Sat, 16 Jun 2007 17:39:38 -0400 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hzfzc-0007gC-21; Sat, 16 Jun 2007 17:39:36 -0400 Original-Received: from 203-216-102-031.dsl.gol.ne.jp ([203.216.102.31] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1HzfzZ-0005k3-3Q; Sun, 17 Jun 2007 06:39:33 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 5C8552F41; Sun, 17 Jun 2007 06:39:36 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: (Richard Stallman's message of "Sat\, 16 Jun 2007 14\:51\:38 -0400") Original-Lines: 15 X-Abuse-Complaints: abuse@gol.com X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:73120 Archived-At: Richard Stallman writes: > Yes, but if people get in the habit of using a new function > whenever they don't actually want to use the match data, > which I expect is most of the time, that need to think carefully > will be much less frequent. I think the name `string-match-p' probably aids that end more than the name I suggested. A guideline like "use (string-match-p) if you just need to do a test, and (save-match-data (string-match ...)) if you need the match data" seems fairly natural. -miles -- Everywhere is walking distance if you have the time. -- Steven Wright