From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#37700: 27.0.50; undo mouse-drag-and-drop-region ineffective Date: Sat, 12 Oct 2019 18:42:30 +0200 Message-ID: <354ABF35-C5D0-4045-B9F0-5615A64408E6@acm.org> References: <3311689D-B1DF-4BAC-86BA-E3D2C6D2ECF1@acm.org> <94D2DE0C-8BD0-4CCF-B77D-5606A1D227DD@acm.org> <5be797bb-9d6b-cebe-edf4-21b4a5944595@gmx.at> <60b5bfa7-0aaf-40c0-3a1d-d0c0c5c662c6@gmx.at> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="231212"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Tak Kunihiro , tkk@misasa.okayama-u.ac.jp To: 37700@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 12 18:43:58 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJKUo-000y1g-GU for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2019 18:43:58 +0200 Original-Received: from localhost ([::1]:34858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJKUm-0001eH-QN for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Oct 2019 12:43:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60419) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJKUO-0001Fd-JE for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 12:43:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJKTu-0005zF-5Z for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 12:43:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53492) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJKTt-0005yy-UT for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 12:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iJKTt-000068-QV for bug-gnu-emacs@gnu.org; Sat, 12 Oct 2019 12:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Oct 2019 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37700 X-GNU-PR-Package: emacs Original-Received: via spool by 37700-submit@debbugs.gnu.org id=B37700.1570898561337 (code B ref 37700); Sat, 12 Oct 2019 16:43:01 +0000 Original-Received: (at 37700) by debbugs.gnu.org; 12 Oct 2019 16:42:41 +0000 Original-Received: from localhost ([127.0.0.1]:34080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJKTY-00005M-SJ for submit@debbugs.gnu.org; Sat, 12 Oct 2019 12:42:41 -0400 Original-Received: from mail231c50.megamailservers.eu ([91.136.10.241]:60088 helo=mail37c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iJKTW-00005A-Q8 for 37700@debbugs.gnu.org; Sat, 12 Oct 2019 12:42:40 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1570898554; bh=PCFkDogNmhp6CxbglWZ6MwQcEj/IPtFcPPPHkXq1rSU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=fGnWT/ILzPa8W6WMKRfnTRJdbx8JXzLZ3FtwK7a2IzZtIQuLGntG4DhTvpRJVAe34 0rWk95bkd2bS2a4gIXgEo6RTdnY+MzBUStjJxKvFyk7mL0HgMdyM6VT+0jNy+o2zH0 H1BqK5DREFh6ZoJdbUnHF5gs+c8jALsky5Y8ewkM= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.1.65] (c-e636e253.032-75-73746f71.bbcust.telenor.se [83.226.54.230]) (authenticated bits=0) by mail37c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x9CGgUYT017255; Sat, 12 Oct 2019 16:42:32 +0000 In-Reply-To: <60b5bfa7-0aaf-40c0-3a1d-d0c0c5c662c6@gmx.at> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0214.5DA2027A.001A, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=eN1tc0h1 c=1 sm=1 tr=0 a=M+GU/qJco4WXjv8D6jB2IA==:117 a=M+GU/qJco4WXjv8D6jB2IA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=HG2BcLEIDMiW6S3uTakA:9 a=CjuIK1q_8ugA:10 a=pHzHmUro8NiASowvMSCR:22 a=xoEH_sTeL_Rfw54TyV31:22 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169041 Archived-At: Tak Kunihiro wrote: > On revision of writing, I often want to move a sentence around to fit > into right place, without loosing the sentence from sight. Most of = the > time I cannot relocate the sentence to the best place by single > drag-and-drop operation thus I want to maintain region active. Thank you, very much my experience. > I found that I did not notice problem pointed by Mattias because I > assign `undo' by `redo+.el' to C-/. Ah yes; apparently, region handling is mentioned in a TODO comment in = redo+.el but nobody has bothered to implement it. Looks like the demand = isn't there. Martin Rudalics wrote: > I think that we should provide an option to not enable the region > after dropping and maybe even make it the default. That would seriously degrade usability of the drag-and-drop feature. = Selecting the text at its final position both highlights it, and allows = the user to drag it again or do other region-related operations. (Other = editors work the same way.) This behaviour is definitely more important to the drag-and-drop user = than the region-confinement of undo. Eli Zaretskii wrote: > So perhaps a better way to resolve this situation is to teach 'undo' > about drag-and-drop, so that it doesn't undo selectively immediately > after drag-and-drop? Maybe --- can it be done within the current 'undo' framework, or would = drag-and-drop need to be special-cased? Did you have a particular = approach in mind?