unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Should save-match-data bind inhibit-changing-match-data to nil?
@ 2007-11-29 10:49 David Kastrup
  2007-11-29 22:31 ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2007-11-29 10:49 UTC (permalink / raw)
  To: emacs-devel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-30 23:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 10:49 Should save-match-data bind inhibit-changing-match-data to nil? David Kastrup
2007-11-29 22:31 ` Richard Stallman
2007-11-29 23:21   ` David Kastrup
2007-11-30 23:36     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).