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: Fri, 14 Aug 2020 07:29:39 -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="26959"; 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 Fri Aug 14 16:30:14 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 1k6aik-0006ts-1I for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 16:30:14 +0200 Original-Received: from localhost ([::1]:38998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6aij-0004nI-2o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Aug 2020 10:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6aiZ-0004kP-FC for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 10:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6aiZ-0000OV-5x for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 10:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6aiZ-00010R-2K for bug-gnu-emacs@gnu.org; Fri, 14 Aug 2020 10:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Aug 2020 14:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34014 X-GNU-PR-Package: emacs Original-Received: via spool by 34014-submit@debbugs.gnu.org id=B34014.15974153873747 (code B ref 34014); Fri, 14 Aug 2020 14:30:03 +0000 Original-Received: (at 34014) by debbugs.gnu.org; 14 Aug 2020 14:29:47 +0000 Original-Received: from localhost ([127.0.0.1]:53421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6aiI-0000yM-Q2 for submit@debbugs.gnu.org; Fri, 14 Aug 2020 10:29:46 -0400 Original-Received: from mail-yb1-f169.google.com ([209.85.219.169]:34981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6aiH-0000xf-0h for 34014@debbugs.gnu.org; Fri, 14 Aug 2020 10:29:45 -0400 Original-Received: by mail-yb1-f169.google.com with SMTP id y134so5307892yby.2 for <34014@debbugs.gnu.org>; Fri, 14 Aug 2020 07:29:44 -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=zMLGrV5RS/9Hd9c/jNEEiU7nlHWnYPVJCM2ZARw0riI=; b=GnTzU0tdELY1UdYcLNCldwc/+9TAD663rlK/uigHBjZE3jv4ElK+i6qvmgpYQm6GxO H44f8bSpoRR6iTrnhPcmeCFmaJzqTbG+tFSao4+ArRlqaV45DYZURJGXtTsoqr1GEb1w 3jWyQZG3xnr87FionhCThqLok/mZDYDb5G3mHny8L3b5SYgX+95SaQyu3rV1fsa/9zt6 A2lkKoY4GhoM51/42NA4CSuazXYvo13DgPMy7xtJjHWcmo4Rp9PbxXAHErxZtGDYk144 iC07BFzx3d4/OLDKWyfqhhAMYZfFfFJfTBj6Ik7OxkKsRrKo7jVOB+3U9sbhJ9O0PBj6 UMog== X-Gm-Message-State: AOAM531E1KEYu9voFbVpwdUZMcQI/vfIU+SpbMO6O1eGi3JSl8DqVdJB tyFtHLsJVv9A5YuSeVLtQkxZz/D4ruB3Nxc7Vg0= X-Google-Smtp-Source: ABdhPJwKveYF/J2rYXPvSHkLTCPWJ79oE+37UMih+4K8IJaUO3lq1ZkQP/UR9PBFF5Gb15si4EeRzgfn2KziQyEUd24= X-Received: by 2002:a25:b290:: with SMTP id k16mr3988899ybj.389.1597415379603; Fri, 14 Aug 2020 07:29:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 14 Aug 2020 07:29:39 -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:185117 Archived-At: reopen 34014 thanks Hi Adolf, [Please use "Reply to all" so that the discussion is recorded in the bug tracker.] Adolf Mathias writes: > Sorry for the apparent delay. I myself got a bit frustrated with the > issue and rewrote a simple version of mouse-drag-region for myself > which does not deal with double/triple-clicks acting on words and > lines however. I was not able to disentangle what Emacs does there. > I somehow was convinced that I had answered back then why I wanted to > bind mouse-drag-region to a button-down event. > I did so because the Emacs help on mouse-drag-region told me so, and > because it used to work that way. Thanks for replying back. I am therefore reopening this bug. With your help, we could try to figure out what is going on here. Does it work like you expect if you evaluate this in emacs -Q? (define-key global-map '[S-down-mouse-1] 'mouse-drag-region) (define-key global-map '[S-drag-mouse-1] 'mouse-set-region) If that does not help, could you please try to describe the use-case in more detail and explain what it is you're trying to achieve? Thanks in advance. Best regards, Stefan Kangas