[Top][All Lists]

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

Re: pre-command-hook not run for DEL

From: davidswelt
Subject: Re: pre-command-hook not run for DEL
Date: Sat, 24 Feb 2007 16:34:19 -0800 (PST)


>backspace (mouse-region-delete-keys) is handled specially inside

Thank you for that hint. I can see now what's happening. 

I would say that there are two bugs, as seen from the perspective of the
uninitiated user, then:

C-h k DEL, after selecting a region with the mouse, returns
`backward-delete-char-untabify' or `cua-delete-region' (in cua-mode). But
`mouse-show-mark' appears to do something unconventional using an exception
that is caught there, so the true command is delete-region. 

Secondly, delete-region is not called in a way that would run the

I can just set `mouse-region-delete-keys' to nil to get the desired behavior
(in cua-mode) and to have pre-command-hooks called. Are there special
reasons why one would want a region that was selected by mouse to behave
differently from a region that was selected by keyboard? 
View this message in context: 
Sent from the Emacs - Pretest - Bug mailing list archive at Nabble.com.

reply via email to

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