unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Stefan Monnier'" <monnier@iro.umontreal.ca>,
	"'Bastien'" <bzg@altern.org>
Cc: 13260@debbugs.gnu.org
Subject: bug#13260: 24.3.50; save match data for core functions like `delete-char' and`delete-backward-char'?
Date: Sun, 23 Dec 2012 17:03:22 -0800	[thread overview]
Message-ID: <20FFDE327FB04D8A913153445844208A@us.oracle.com> (raw)
In-Reply-To: <jwvfw2wgtpe.fsf-monnier+emacs@gnu.org>

> 99% of the functions can destroy the match-data, even though they
> may preserve it in 99% of the circumstances.  And in 99% of the
> cases where they do destroy the match-data, nobody cares anyway,
> which is why we shouldn't always save-match-data.

This is well put, and helpful.  How about saying something similar in the Elisp
manual?  It provides a good guideline for understanding when you might want to
save match data.






  reply	other threads:[~2012-12-24  1:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-23 15:18 bug#13260: 24.3.50; save match data for core functions like `delete-char' and `delete-backward-char'? Bastien Guerry
2012-12-23 15:47 ` Stefan Monnier
2012-12-23 16:40   ` Bastien
2012-12-24  0:54     ` Stefan Monnier
2012-12-24  1:03       ` Drew Adams [this message]
2012-12-24  1:24       ` Bastien
2012-12-24  5:09         ` Stefan Monnier
2012-12-24  1:25       ` Bastien

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=20FFDE327FB04D8A913153445844208A@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=13260@debbugs.gnu.org \
    --cc=bzg@altern.org \
    --cc=monnier@iro.umontreal.ca \
    /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).