emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find-file-noselect needs save-match-data


From: Richard Stallman
Subject: Re: find-file-noselect needs save-match-data
Date: Wed, 06 Jun 2007 18:09:45 -0400

     > 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]