[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled
From: |
Visuwesh |
Subject: |
bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled |
Date: |
Wed, 13 Jul 2022 16:46:35 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
[Wednesday July 13, 2022] David Ponce wrote:
> On 13/07/2022 11:50, Visuwesh wrote:
>> You can disable the new behaviour by saying,
>> (put 'mouse-yank-primary 'delete-selection nil)
>> (put 'mouse-yank-secondary 'delete-selection nil)
>> (put 'mouse-yank-at-click 'delete-selection nil)
>> But I guess, it sure didn't take long for the complaints to come in
> Maybe the behavior could be disabled for cua-mode to be consistent
> with CUA expected behavior? After all, cua-mode is more than just
> delete-selection-mode ;-)
>
> Thanks
> [resent, forgot to CC the bug list]
Thankfully delete-selection-mode is sufficiently flexible to allow this.
We just need to replace the (put 'mouse-yank-primary 'delete-selection t)
in delsel.el with the following,
(put 'mouse-yank-primary 'delete-selection
(lambda ()
(if (or cua-mode (null mouse-yank-at-point))
nil
'yank)))
[ Disclaimer: I didn't test it. ]
bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled, David Ponce, 2022/07/13
- bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled,
Visuwesh <=
bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled, Po Lu, 2022/07/13
bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled, Stefan Kangas, 2022/07/13