From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: find-file-noselect needs save-match-data Date: Thu, 14 Jun 2007 12:20:34 -0400 Message-ID: References: <46643852.6070709@gmx.at> <46665AD7.7040706@gmx.at> <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: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1181838321 5719 80.91.229.12 (14 Jun 2007 16:25:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2007 16:25:21 +0000 (UTC) Cc: juri@jurta.org, schwab@suse.de, miles.bader@necel.com, emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 14 18:25:19 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 1Hys8L-0007ad-DH for ged-emacs-devel@m.gmane.org; Thu, 14 Jun 2007 18:25:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hys8K-0006X6-Ma for ged-emacs-devel@m.gmane.org; Thu, 14 Jun 2007 12:25:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hys3o-0003Us-Ck for emacs-devel@gnu.org; Thu, 14 Jun 2007 12:20:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hys3n-0003Ta-Cc for emacs-devel@gnu.org; Thu, 14 Jun 2007 12:20:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hys3n-0003TG-5S for emacs-devel@gnu.org; Thu, 14 Jun 2007 12:20:35 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hys3m-0002Ft-WE for emacs-devel@gnu.org; Thu, 14 Jun 2007 12:20:35 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hys3m-0004NH-Jy; Thu, 14 Jun 2007 12:20:34 -0400 In-reply-to: <87odjjzaoz.fsf@catnip.gol.com> (message from Miles Bader on Thu, 14 Jun 2007 08:39:08 +0900) 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:72875 Archived-At: (let ((mdata (vector 10))) (if (string-match-reentrant regexp string nil mdata) (message "blargh [%s] [%s]" (aref mdata 1) (aref mdata 2)))) That is complicated enough that it would be easier to use save-match-data. Therefore, we may as well not add this extra complexity. We have seen two possible simple specs for this function's return value: return just the location of the start of the match, and return the entire match data. Stefan argued against the latter on grounds of efficiency, so I suggested trying both approaches and measuring the efficiency.