Simplify mouse-dragging implementation.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 3 Jul 2010 03:07:48 +0000 (23:07 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 3 Jul 2010 03:07:48 +0000 (23:07 -0400)
commit5592c08fbf5a0ca9f3f7803d2d214a6f6a7097ba
tree75ec04f05724aa16096d9a31a202ff1ddd775377
parent873fbd0b84997863af25e3ddae23b6c078a3e6f5
Simplify mouse-dragging implementation.
Now that DEL deletes active regions, we can handle it by using the
ordinary region instead of a separate overlay.

* mouse.el (mouse-drag-overlay): Variable deleted.
(mouse-move-drag-overlay, mouse-show-mark): Functions deleted.
(mouse--remap-link-click-p): New function.
(mouse-drag-track): Handle dragging by using temporary Transient
Mark mode, instead of a special overlay.
(mouse-kill-ring-save, mouse-save-then-kill): Don't call
mouse-show-mark.

* mouse-sel.el (mouse-sel-selection-alist): mouse-drag-overlay
deleted.
lisp/ChangeLog
lisp/mouse-sel.el
lisp/mouse.el