all messages for Emacs-related lists mirrored at yhetil.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.