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: find-file-noselect needs save-match-data Date: Sun, 17 Jun 2007 08:50:39 -0400 Message-ID: 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 1182085141 26572 80.91.229.12 (17 Jun 2007 12:59:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 12:59:01 +0000 (UTC) Cc: juri@jurta.org, schwab@suse.de, emacs-devel@gnu.org, miles.bader@necel.com, miles@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 17 14:58:57 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 1HzuLJ-0003VT-1F for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2007 14:58:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzuLI-0005bZ-94 for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2007 08:58:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzuLF-0005bU-BT for emacs-devel@gnu.org; Sun, 17 Jun 2007 08:58:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzuLE-0005bI-0K for emacs-devel@gnu.org; Sun, 17 Jun 2007 08:58:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzuLD-0005bF-R7 for emacs-devel@gnu.org; Sun, 17 Jun 2007 08:58:51 -0400 Original-Received: from tomts16-srv.bellnexxia.net ([209.226.175.4]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HzuLC-0003LV-5u; Sun, 17 Jun 2007 08:58:50 -0400 Original-Received: from pastel.home ([70.55.143.156]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070617125849.GPWR1673.tomts16-srv.bellnexxia.net@pastel.home>; Sun, 17 Jun 2007 08:58:49 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7265F813E; Sun, 17 Jun 2007 08:50:39 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sat\, 16 Jun 2007 14\:51\:38 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:73146 Archived-At: >> 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. > 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 this is a delusion. Maybe 100 years from now, it won't be the case any more but in the foreseeable future most functions will still potentially (i.e. unless documented otherwise) change the match-data and it'll still be the only safe assumption to make. Stefan