bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Lars Ingebrigtsen
Subject: bug#56530: 29.0.50; mouse-2 cut selected text when cua-mode is enabled
Date: Tue, 26 Jul 2022 14:08:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> delete-selection-mode deletes the region in pre-command-hook
> before running the command.
>
> Maybe then these commands could have special handling of 
> delete-selection-mode?
> They already contain special handling of select-active-regions:
>
>   ;; Without this, confusing things happen upon e.g. inserting into
>   ;; the middle of an active region.
>   (when select-active-regions
>     (let (select-active-regions)
>       (deactivate-mark)))

Yes, I think that sounds like the way to go.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]