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: Wed, 06 Jun 2007 18:09:45 -0400 Message-ID: References: <46665B1D.8000005@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 1181167827 15051 80.91.229.12 (6 Jun 2007 22:10:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 22:10:27 +0000 (UTC) Cc: herberteuler@hotmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 07 00:10:25 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 1Hw3hq-0001ds-Gh for ged-emacs-devel@m.gmane.org; Thu, 07 Jun 2007 00:10:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw3hq-0002i3-1Y for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2007 18:10:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hw3hL-0002I2-I6 for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:09:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hw3hK-0002HI-Sk for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:09:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw3hK-0002Gz-M4 for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:09:46 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hw3hK-0003HX-Dt for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:09:46 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hw3hJ-0003w5-4h; Wed, 06 Jun 2007 18:09:45 -0400 In-reply-to: <46665B1D.8000005@gmx.at> (message from martin rudalics on Wed, 06 Jun 2007 08:58:37 +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:72379 Archived-At: > I don't understand. In this case, `find-file-noselect' uses regexps, > and is placed on `post-command-hook' indirectly (I don't know whether > `post-command-hook' is sensitive). Every hook is sensitive. I don't think so. Many hooks are called from places where it just doesn't matter. For instance, mode hooks. A major mode can do just about anything, and callers had better not expect one to preserve the match data. Therefore, there is no reason to take care about the functions called by the mode hook, either.