[Top][All Lists]

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

Re: pre-command-hook not run for DEL

From: Stefan Monnier
Subject: Re: pre-command-hook not run for DEL
Date: Sun, 25 Feb 2007 23:06:45 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux)

>> backspace (mouse-region-delete-keys) is handled specially inside
>> mouse-show-mark.
>> Should that code run pre-command-hook?
>> It seems logical.

> Yes, and it should perform command remapping too.

Yes.  And the only way to do it right is to completely re-implement it.
E.g. redo it the way delete-selection-mode does.


PS: I once again recommend we throw away mouse-region-delete-keys.
It's been a source of several very difficult problems to track down and
often not even fixed because the implementation is too different from the
normal way commnds are run.  Those people who want this kind of behavior
will probably prefer delete-selection-mode anyway.

reply via email to

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