From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: find-file-noselect needs save-match-data Date: Fri, 15 Jun 2007 22:03:28 +0200 Message-ID: <85ps3xoui7.fsf@lola.goethe.zz> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181937840 330 80.91.229.12 (15 Jun 2007 20:04:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2007 20:04:00 +0000 (UTC) Cc: rms@gnu.org, miles.bader@necel.com, schwab@suse.de, emacs-devel@gnu.org, juri@jurta.org, miles@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 15 22:03:56 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 1HzI1T-0000OI-Qf for ged-emacs-devel@m.gmane.org; Fri, 15 Jun 2007 22:03:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzI1T-0000lw-FB for ged-emacs-devel@m.gmane.org; Fri, 15 Jun 2007 16:03:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzI1R-0000l8-9k for emacs-devel@gnu.org; Fri, 15 Jun 2007 16:03:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzI1P-0000iS-Rd for emacs-devel@gnu.org; Fri, 15 Jun 2007 16:03:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzI1P-0000iP-O4 for emacs-devel@gnu.org; Fri, 15 Jun 2007 16:03:51 -0400 Original-Received: from mail-in-11.arcor-online.net ([151.189.21.51]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzI1N-0001r5-7E; Fri, 15 Jun 2007 16:03:49 -0400 Original-Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id 9AECA10BB1; Fri, 15 Jun 2007 22:03:47 +0200 (CEST) Original-Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 502CA114E4C; Fri, 15 Jun 2007 22:03:47 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-072-015.pools.arcor-ip.net [84.61.72.15]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 212CE3027E7; Fri, 15 Jun 2007 22:03:47 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 6D20D1C3E01D; Fri, 15 Jun 2007 22:03:29 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Fri\, 15 Jun 2007 15\:55\:55 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 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:73005 Archived-At: Stefan Monnier writes: >> Actually, I'd even argue against any such new function, on the grounds >> that it's solving a non-problem, i.e. it will just add new functions, >> new code, new complexity for no real benefit. > >> This function is good because it will enable programmers to DTRT in a >> simpler way in many cases. > > I fail to see the simplicity. All the difficulty comes from having to think > about when to be careful about the match-data. > > After that, there is no real difference whether the problem is solved by > save-match-data or fast-string-match or some extra argument to string-match > or by let-binding inihibit-match-data. Apropos: it appears to have been lost in the noise: save-match-data in its current implementation is _not_ a noop around code not touching match-data, since it converts integer data into markers (which move their positions under buffer changes) and then back again. Is there a compelling rationale for that? If not: now would be the time to change this. We have quite a lot of time to figure out whether this change causes unexpected problems for someone. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum