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

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Sat, 3 Jun 2023 13:41:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: 63872 <at> debbugs.gnu.org
Subject: bug#63872: [PATCH] `mouse-drag-and-drop-region' sometimes couldn't cut
Date: Sat, 3 Jun 2023 13:35:28 +0000
[Message part 1 (text/plain, inline)]
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
[0001-Fix-bug-that-mouse-drag-and-drop-region-couldn-t-cut.patch (application/octet-stream, attachment)]

This bug report was last modified 1 year and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.