emacs-devel
[Top][All Lists]
Advanced

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

Should save-match-data bind inhibit-changing-match-data to nil?


From: David Kastrup
Subject: Should save-match-data bind inhibit-changing-match-data to nil?
Date: Thu, 29 Nov 2007 11:49:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

Hi, I was thinking about using inhibit-changing-match-data in replace.el
for a number of things.  Now the tricky part is what to do with
operations that can lead to the user switching windows and similar?  It
is an obvious fix to wrap them in save-match-data.  But one would need
to set inhibit-changing-match-data to t at the same time.

Is this something that save-match-data could/should do in general?
After all, there is not much of a point to save the match data (except
that it gets moved into markers instead of integers, which _is_ a
difference when the user is editing) when it can't change, anyway?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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