From: Bastien <bzg@altern.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
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:40:35 +0100 [thread overview]
Message-ID: <87bodkbu2k.fsf@bzg.ath.cx> (raw)
In-Reply-To: <jwvr4mghisz.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 23 Dec 2012 10:47:58 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I know the policy is to let any function assume the match data
>> are not saved, but I think an exception would be useful here.
>
> Why?
Because delete-char is very low-level and because it is hard to
guess why it would modify the match data -- hence very easy to
assume it will not, while it does. Principle of least surprise?
--
Bastien
next prev parent reply other threads:[~2012-12-23 16:40 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 [this message]
2012-12-24 0:54 ` Stefan Monnier
2012-12-24 1:03 ` bug#13260: 24.3.50; save match data for core functions like `delete-char' and`delete-backward-char'? Drew Adams
2012-12-24 1:24 ` bug#13260: 24.3.50; save match data for core functions like `delete-char' and `delete-backward-char'? 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bodkbu2k.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=13260@debbugs.gnu.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 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.