7 comments

[ 3.1 ms ] story [ 19.1 ms ] thread
Isn't it dangerous to change that function if some other command/library depends on the original behavior?

Why don't you just write my-zap-to-char like everyone else? :)

It's a risk yes, but I've been using it this way for about a year and encountered no problems.

I'm thinking of TIMTOWTDI, and that perhaps many people don't know about defadvice.

I also love hooks.
It's a little dangerous, but Emacs users have been making numbered backups automatically since before there was RCS. Since before there was GNU Emacs actually.
It is dangerous only if you change the function's interface.
Why? Its not like its a pure function. The change puts Emacs in a different state than with the original behavior...