bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13260: 24.3.50; save match data for core functions like `delete-char


From: Bastien
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
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]