Subject: bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled

From: Lars Ingebrigtsen <[email-masked]>
Date: Thu, 14 Jul 2022 20:04:45 +0200

Juri Linkov <[email-masked]> writes:

> There is already the minor mode: delete-selection-mode
> that is configured by symbol properties.
> Supporting a descriptive symbol name would allow to easily
> configure the desired behavior with just:
>
>   (put 'mouse-yank-at-click 'delete-selection 'yank-on-region)

The problem is that you have to `put' on three symbols, which isn't
optimal.  (My proposed mode does just that.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no