mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(mouse-drag-region): Use deactivate-mark.
This commit is contained in:
parent
b6e1c607fc
commit
f767385c90
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ This must be bound to a button-down mouse event."
|
|||
(move-overlay mouse-drag-overlay
|
||||
start-point start-point
|
||||
(window-buffer start-window))
|
||||
(setq mark-active nil)
|
||||
(deactivate-mark)
|
||||
(let (event end end-point)
|
||||
(track-mouse
|
||||
(while (progn
|
||||
|
|
@ -221,7 +221,7 @@ This must be bound to a button-down mouse event."
|
|||
(numberp (posn-point (event-end event))))
|
||||
(goto-char (posn-point (event-end event))))
|
||||
(if (= (point) start-point)
|
||||
(setq mark-active nil)
|
||||
(deactivate-mark)
|
||||
(set-mark start-point))
|
||||
(delete-overlay mouse-drag-overlay))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue