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: Herbert Euler
Subject: Re: find-file-noselect needs save-match-data
Date: Fri, 15 Jun 2007 00:05:52 +0800

Excuse me but just another question: as Stefan said, 99% of
non-trivial functions use regexps, does it mean that these 99%
non-trivial functions shall not be put on the hooks that may be run
between two regexp-sensitive functions/commands unless the putter
saves match-data?  Or, does it mean that this type of hooks need
`save-match-data'?  `pre-command-hook', `post-command-hook',
`before-change-functions' and `after-change-functions' seem to be some
of the hooks.  I notice that `c-before-change' and `c-after-change'
use `save-match-data'.  Are these applications of `save-match-data'
trivial, or should other modes save match-data when putting functions
on the hooks?

Regards,
Guanpeng Xu

Btw, `post-command-hook' is the source of the original problem.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/





reply via email to

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