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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63872: [PATCH] `mouse-drag-and-drop-region' sometimes couldn't cut


From: Shynur Xie
Subject: bug#63872: [PATCH] `mouse-drag-and-drop-region' sometimes couldn't cut
Date: Sat, 3 Jun 2023 13:35:28 +0000

The function `mouse-drag-and-drop-region' couldn't cut/move the
selected region when `mark-even-if-inactive' is t.

Say execute `emacs -Q` then evaluate
    (custom-set-variables
     '(mark-even-if-inactive nil)
     '(mouse-drag-and-drop-region t))
When I use mouse to drag and drop a selected region, the region is not
cut and pasted; it is copied and pasted instead.

The attached patch binds `mark-even-if-inactive' to t within the body
of `mouse-drag-and-drop-region'.

--
shynur

Attachment: 0001-Fix-bug-that-mouse-drag-and-drop-region-couldn-t-cut.patch
Description: 0001-Fix-bug-that-mouse-drag-and-drop-region-couldn-t-cut.patch


reply via email to

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