From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adolf Mathias 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 18:20:07 +0200 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="36508"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 34014@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 16 18:21:10 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 1k7LPB-0009MU-V6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Aug 2020 18:21:09 +0200 Original-Received: from localhost ([::1]:50528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7LPB-0002DF-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Aug 2020 12:21:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7LP4-0002D9-DR for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 12:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7LP4-0000tX-45 for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 12:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7LP3-0002bD-Vw for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 12:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Adolf Mathias Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Aug 2020 16:21:01 +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.15975948289921 (code B ref 34014); Sun, 16 Aug 2020 16:21:01 +0000 Original-Received: (at 34014) by debbugs.gnu.org; 16 Aug 2020 16:20:28 +0000 Original-Received: from localhost ([127.0.0.1]:58269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7LOW-0002Zx-IM for submit@debbugs.gnu.org; Sun, 16 Aug 2020 12:20:28 -0400 Original-Received: from mail-wm1-f44.google.com ([209.85.128.44]:40280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7LOS-0002Zi-Pb for 34014@debbugs.gnu.org; Sun, 16 Aug 2020 12:20:26 -0400 Original-Received: by mail-wm1-f44.google.com with SMTP id k20so12009549wmi.5 for <34014@debbugs.gnu.org>; Sun, 16 Aug 2020 09:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5N/e3LH69LUDdxoP9lyUvbM7m4thvyhA/vjVTkkOkoE=; b=R0zuk9H/mBSqkyfiFFnl2UvX1ZQE6kOTYcRprOki7wvhtvYvzJ2tauxU5EsHa070Ep aHQCubbd0/eX5cvDD4dec3Asxiw/drDrvOWKOwMWrSKrHtJAVuOxEiljTVfPxuLSeFP1 T0LweSVuL4EpQURoSh+chAurSId4YauxYgtvwm2xCdqmSBJnPf0Q5bpAusguhYrEgerE jYZ/x5dNDE0LAfzM+er8kSeIBOvx63UZZMxa7+UkJQl3F0CefvwsG4m2FMeUih2Cbc52 z2HLTjg/MG0TK1KcxriOPVurWNWDbXe5zUMkAe1Zu2RUTfdibiqCNSq9FMn1tlcKmo7S Uvyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5N/e3LH69LUDdxoP9lyUvbM7m4thvyhA/vjVTkkOkoE=; b=n8+dijRGKCHgdH0RPNvXDgQmSi4SPWn3FsgbNAoLBDEKRp+sj0BAgJm+Nm9ZTly5ku fQmekIUKFX2YJ2KYDfaZ62U5WZBfdzKzbtfsJeqU+nOJTSHjTO61EXbXCilH05AQXEmO QntNMMknA/HtkhJ/stQj5GLLfUp0cn2rK4GKd2xvZCzc0Of/kGpzLGqAB9sBCmiE6eco PNVuZW9oosLDOlBFfPU7pK6DPupT1G22YJ5VOzmh7A6D2NpRKHfEe2DR0Ces8xwI/5V8 7dgorO9nj1Ywb2NGaZKQ8GMUrpwo1WjbKTeZtPR1TqRfsrpdYbIkRbpxMn9oojN9w6mD ckrQ== X-Gm-Message-State: AOAM530kPvks4gKCKG2OhY8aS6+yuKBB/1uVNqpBH+C0HZ6wdJzdsRBz 0/OXKro+pF8nb6eC8QzkXk6q4ul3saBbDi3pjPo3WbHhKYE= X-Google-Smtp-Source: ABdhPJwk/kL8HYyl4N8XcVi4UW4GgJ/cQjdyQZOa/NUabgeA7JXFEBySdUnOGRXg268CEv1U22ptgxLoGpVc4b3qCQU= X-Received: by 2002:a1c:c90d:: with SMTP id f13mr11504394wmb.25.1597594818912; Sun, 16 Aug 2020 09:20:18 -0700 (PDT) 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:185303 Archived-At: 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. On Sun, Aug 16, 2020 at 4:34 PM Stefan Kangas wrote: > > Adolf Mathias writes: > > > The function allows a workflow that I know from the SunOS Textedit > > from the late 1980s. Your cursor is somewhere in the text, you drag > > out a region in the same window/buffer or another one, and the text > > that you selected gets copied to your cursor at mouse button release, > > without having to reposition your cursor. > > Does the following cover your use case? > > (setq mouse-drag-copy-region t) > > Alternatively: > > M-x customize-option RET mouse-drag-copy-region RET > > Best regards, > Stefan Kangas