From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#34014: 25.2; binding down mouse event with modifier to mouse-drag-region does not work Date: Sun, 16 Aug 2020 10:10:49 -0700 Message-ID: References: <83pnrbhvna.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6438"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 34014@debbugs.gnu.org To: Adolf Mathias Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 16 19:11:26 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k7MBq-0001bo-FB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Aug 2020 19:11:26 +0200 Original-Received: from localhost ([::1]:50296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7MBp-0000o3-H7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Aug 2020 13:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7MBT-0000Qt-A6 for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 13:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7MBT-0006kC-0U for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 13:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7MBS-00022G-Sf for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 13:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Aug 2020 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 34014-submit@debbugs.gnu.org id=B34014.15975978577807 (code B ref 34014); Sun, 16 Aug 2020 17:11:02 +0000 Original-Received: (at 34014) by debbugs.gnu.org; 16 Aug 2020 17:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:58361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7MBN-00021p-82 for submit@debbugs.gnu.org; Sun, 16 Aug 2020 13:10:57 -0400 Original-Received: from mail-yb1-f173.google.com ([209.85.219.173]:36358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7MBL-00021X-5X for 34014@debbugs.gnu.org; Sun, 16 Aug 2020 13:10:55 -0400 Original-Received: by mail-yb1-f173.google.com with SMTP id g3so8142749ybc.3 for <34014@debbugs.gnu.org>; Sun, 16 Aug 2020 10:10:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=ppM5nq4gCXx/B3riy05f4jq/U82VIOZbPTvX3hO7qRA=; b=e44f00rDn85aBrcHROmi+n2yllOcXrPMcDW3G5sCnEwSkOGBlom+UN03yTg31u4jik leieOG50IHPfaJSuy+A6Rt8934Jy5ZZrAIpcDECl/T5QaIBQhpiz6sLTgWLNqzN5rR9n 8iESAiRF/9m9IgeeR9FrvyTUszWJzN20C2brITIJsi1Gu9bT2jjR6+vy6g01KmBK++pu sY5Egw606PqEegUeP9GcNYKYuf040HamKVGwwQT8N5oxY6Ff4yt6w/hPaRKHUg5n5UVD 00NhUMPGODyBxW0bqC9jDP7CHQG4oI8ckq0AmjvEtw54uQ91Cs363hRpfgyZzOCzaPi3 eloQ== X-Gm-Message-State: AOAM531JmtikpjY1d4JF+haK4TTFSSMuvRN7KvYpyFK54WP4SSg62ehj avIGfy8z2lQ0/qhMpa7z4/VCeRsIT7wPmcAtAh0= X-Google-Smtp-Source: ABdhPJzB9yYRnP91IDQCUcHCaJM8RTVNABtXGqXZw97cwKShTLSH43GwsKtqjvTy6KHh9AXE32GCtcXqMh65PEMvOog= X-Received: by 2002:a5b:508:: with SMTP id o8mr17349111ybp.43.1597597849710; Sun, 16 Aug 2020 10:10:49 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 16 Aug 2020 10:10:49 -0700 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185316 Archived-At: Adolf Mathias writes: > No, it doesn't. With emacs -Q, mouse-1 then mouse-3 does the same as > simply dragging out a region. Clicking mouse-3 at the same spot, the > region gets killed, otherwise readjusted. > With (setq mouse-drag-copy-region t), the region also gets copied to > the kill ring, otherwise it just disappears. > > Assume the text cursor is at position A. I want the region from B to C > copied to the text cursor position, and then continue editing right > behind the copied text. > > 1. Workflow with mouse-stay-and-copy bound to S-mouse-1: > press S-mouse-1 at B, release mouse-1 at C. > > 2. Workflow with mouse-copy-then-kill and (setq mouse-drag-copy-region t): > click mouse-1 at B, click mouse-3 at C, click mouse-1 at A, hit Ctrl-Y. > > 3. Workflow with standard dragged region: > drag out region from B to C. Hit Ctrl-W. Click mouse-1 at A. Hit Ctrl-Y. > > Workflow 1 saves me one or two mouse clicks and a keystroke and the > navigation back to A. It is that navigation back to A that bothers me > most - the dexterity issue, you know. Thank you for the detailed explanation. Perhaps the easiest would be to expand `mouse-drag-copy-region' et al. to optionally support the behavior you are describing? I'm sure we would consider a patch to Emacs along those lines. Best regards, Stefan Kangas