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: Tue, 05 Jun 2007 18:32:49 -0400 Message-ID: References: <4664FA05.9000609@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1181082818 3920 80.91.229.12 (5 Jun 2007 22:33:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jun 2007 22:33:38 +0000 (UTC) Cc: herberteuler@hotmail.com, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 06 00:33:37 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 1Hvhaq-0001Jz-MB for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2007 00:33:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvhaq-00047O-6G for ged-emacs-devel@m.gmane.org; Tue, 05 Jun 2007 18:33:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvhaS-0003zT-N7 for emacs-devel@gnu.org; Tue, 05 Jun 2007 18:33:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvhaS-0003z7-7f for emacs-devel@gnu.org; Tue, 05 Jun 2007 18:33:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvhaS-0003z3-2C for emacs-devel@gnu.org; Tue, 05 Jun 2007 18:33:12 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HvhaR-00008I-Pr for emacs-devel@gnu.org; Tue, 05 Jun 2007 18:33:11 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hvha5-0004rw-9H; Tue, 05 Jun 2007 18:32:49 -0400 In-reply-to: <4664FA05.9000609@gmx.at> (message from martin rudalics on Tue, 05 Jun 2007 07:52:05 +0200) 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:72299 Archived-At: `save-match-data' is not cheap. I suppose it's not advisable to automatically wrap every hook into it. Not every hook. On the other hand, find-file is slow, so a little extra slowness in find-file is not a problem. I think that `find-file-noselect' and `file-truename' should not change match-data regardless of whether they run in a hook or not I agree, expecially for `file-truename'. Functions that just manipulate file names ought to be made easy to call without worries.