Make 'mouse-drag-and-drop-region' work with 'mouse-autoselect-window' non-nil
* lisp/mouse.el (mouse-drag-and-drop-region): Ignore 'select-window' events to make it work with 'mouse-autoselect-window'.
This commit is contained in:
parent
0491de8dad
commit
ff7bd84b23
1 changed files with 3 additions and 1 deletions
|
@ -2380,7 +2380,9 @@ is copied instead of being cut."
|
|||
;; When event was click instead of drag, skip loop
|
||||
(while (progn
|
||||
(setq event (read-event))
|
||||
(mouse-movement-p event))
|
||||
(or (mouse-movement-p event)
|
||||
;; Handle `mouse-autoselect-window'.
|
||||
(eq (car event) 'select-window)))
|
||||
(unless value-selection ; initialization
|
||||
(delete-overlay mouse-secondary-overlay)
|
||||
(setq value-selection (buffer-substring start end))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue