From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Should save-match-data bind inhibit-changing-match-data to nil?
Date: Thu, 29 Nov 2007 11:49:43 +0100 [thread overview]
Message-ID: <85ir3l5nso.fsf@lola.goethe.zz> (raw)
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
next reply other threads:[~2007-11-29 10:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 10:49 David Kastrup [this message]
2007-11-29 22:31 ` Should save-match-data bind inhibit-changing-match-data to nil? Richard Stallman
2007-11-29 23:21 ` David Kastrup
2007-11-30 23:36 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85ir3l5nso.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).