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 22:54:37 +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="8757"; 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 22:55:11 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 1k7PgN-0002Ag-An for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Aug 2020 22:55:11 +0200 Original-Received: from localhost ([::1]:53220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7PgM-0000M6-Cs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 Aug 2020 16:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7PgE-0000Lx-Nq for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 16:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47111) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7PgE-0005D9-Ei for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 16:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7PgE-0008Nd-Dk for bug-gnu-emacs@gnu.org; Sun, 16 Aug 2020 16:55:02 -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 20:55: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.159761129732199 (code B ref 34014); Sun, 16 Aug 2020 20:55:02 +0000 Original-Received: (at 34014) by debbugs.gnu.org; 16 Aug 2020 20:54:57 +0000 Original-Received: from localhost ([127.0.0.1]:58657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Pg9-0008NH-5h for submit@debbugs.gnu.org; Sun, 16 Aug 2020 16:54:57 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:41837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Pg6-0008N2-Pi for 34014@debbugs.gnu.org; Sun, 16 Aug 2020 16:54:55 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id r2so12966450wrs.8 for <34014@debbugs.gnu.org>; Sun, 16 Aug 2020 13:54:54 -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=eyH/S80mh3LIfedGqFzCurRxkAQE7DHVD1j8wOUpDmQ=; b=kX7ppzA4/VdPasjdqEYcY1SkQYqAxlH1+ywFEF/2VWxOis1upzFeU9dG+sOzHHr4Fa nkrwBOX9Rr3CeqnKipW8auWuT1npRW3is/8qvtsT6OhHs47InMeRtubN2IvpqAgEWWyE cZ7eIDXTIs04JMoyd9PYZQ6fILSoz1MAPz0tJNVxwtxYGLu4/Es0Pj4dtIP1CiVbuQW7 d/Mzhw2BWNutpp6/lOzd3MX69Lk/czBPM/LsVWIYzLzyhT4ZfTl7ASCWFfMBsZd31PeP kpvj+Jj/uG26lBPd7e0nCSkP4962uWI/mj+an4GcufF9dxL4TXAa7m951Tb+ijgVmE63 A7qw== 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=eyH/S80mh3LIfedGqFzCurRxkAQE7DHVD1j8wOUpDmQ=; b=iC7vbGv2lgxY9svmbIUJF0I/uHcbhDKm8PRF2hQw13jcWrv/EE3+z/iImPcr1BuwnZ wrjfBbj5tDIBixFKVRcQtsVteNHzN4fewGl/fMtvIsJ7QhvMA5aTVqjYa6l0LkfiBFsl H56hfXDqnm9//X8cD8tgTZaRZyUeI7V7d0WK97wEeZKynuVM5xeeUFqBg224qXm5t2qe /2ybxuL2SdRVsVQOxYi8rjiJJcPNX/1LO/vaUAD0Ansp2hkHxTvTHizxSMiQeuizhocx MKyNgCHs1S6dVPO45Tp8TmV/yfM+451feGvseOz1TAVUrHu1P5Nea4Y9kADHRK3yx98Y cFIw== X-Gm-Message-State: AOAM531rBmtXEW8KKNLMo4f10hQ8i/Vqp1DGV+rGvPLYDB05+F8+VQuJ Gl0AXwdQNdfDIjRiRMXWxqWx8SUw1ItCyvGY+CO/IGRAWwg= X-Google-Smtp-Source: ABdhPJyzXXEyPpLWRJSDOj49c5pCvEJmVcX7TZXa9cZlqzjtqEyxNYMX/ehg8gkFVBfUrBJqtBq8V+u4oOAdzkg9OHY= X-Received: by 2002:adf:f207:: with SMTP id p7mr13032254wro.292.1597611288842; Sun, 16 Aug 2020 13:54:48 -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:185350 Archived-At: Ah yes, track-mouse is almost what I need, as I said I wrote my replacement for mouse-drag-track, but the double and triple click behaviour is tricky in its own right, with all those timeouts and motion bounds to keep in mind when pursuing the multiple-click hypothesis, and mouse-drag-track did that all perfectly until Emacs 25, yada yada yada.... A bit frustrating. Sorry :) Let's try to come to a constructive conclusion. By the way, Emacs is a great piece of software, and I am slightly ashamed that I did not contribute to it, given that it is my editor of choice, and given the numerous Emacs-Lisp goodies that I use a lot daily, enabled by Stallman's fabulous basic design. On Sun, Aug 16, 2020 at 7:10 PM Stefan Kangas wrote: > > 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