Yank active region with middle-click yank
* eat.el (eat-mouse-yank-primary): Select active region if 'select-active-regions' is non-nil.
This commit is contained in:
parent
f01afd6c24
commit
d85744b48a
1 changed files with 3 additions and 0 deletions
3
eat.el
3
eat.el
|
@ -5108,6 +5108,9 @@ STRING and ARG are passed to `yank-pop', which see."
|
|||
|
||||
EVENT is the mouse event."
|
||||
(interactive "e")
|
||||
(when select-active-regions
|
||||
(let (select-active-regions)
|
||||
(deactivate-mark)))
|
||||
(unless (windowp (posn-window (event-start event)))
|
||||
(error "Position not in text area of window"))
|
||||
(select-window (posn-window (event-start event)))
|
||||
|
|
Loading…
Add table
Reference in a new issue