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: Sat, 15 Aug 2020 14:07:21 +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="5921"; 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 Sat Aug 15 14:08: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 1k6uyo-0001QU-J0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Aug 2020 14:08:10 +0200 Original-Received: from localhost ([::1]:47070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k6uyn-0008O3-1w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Aug 2020 08:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k6uyh-0008Nv-16 for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 08:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k6uyg-0001B8-Ns for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 08:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k6uyg-0005Vm-I8 for bug-gnu-emacs@gnu.org; Sat, 15 Aug 2020 08:08: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: Sat, 15 Aug 2020 12:08: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.159749326021152 (code B ref 34014); Sat, 15 Aug 2020 12:08:02 +0000 Original-Received: (at 34014) by debbugs.gnu.org; 15 Aug 2020 12:07:40 +0000 Original-Received: from localhost ([127.0.0.1]:54392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6uyK-0005V5-HO for submit@debbugs.gnu.org; Sat, 15 Aug 2020 08:07:40 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:38659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k6uyI-0005Uq-Tv for 34014@debbugs.gnu.org; Sat, 15 Aug 2020 08:07:39 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id t14so10022239wmi.3 for <34014@debbugs.gnu.org>; Sat, 15 Aug 2020 05:07:38 -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=LSFqyWaas4BoNx5jAPI5HvxoOK2zQlTZT0SSyuVLqUU=; b=LbBIExkpincImRAZMiOK+KeIRIvJ/jREJiTB0GJO/BoUwTCz/GG66LRPKYSYRd4KtG ZuwdKMI74zBVx0e5afBxsp+uXpMFeiFhaY8SDflgs5RxbcSCQ4ZRC/CCR+ifKp311pW/ 4E2+2o1P6J8mQyGm+DzHvPVwT0JsCBxRhpQ4yrJEdMnALfUQp4h6Upuk8MFUyMZDhjtd ZbBh6cGempQdRlYvimbhASCBE1hX+6hl1lOmrDvVdFykzaoX0SAK05yU2+qioQT4zvI2 fOFdTXiRJfrvKKxIZ5+n2InOxprs5Z/288/EQ9h9FwPeHJkh1WUl6aLlXEO8+nteqi0Q IHxQ== 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=LSFqyWaas4BoNx5jAPI5HvxoOK2zQlTZT0SSyuVLqUU=; b=KrYQQ0MbfXMlm2vbL9PjVD56Zoq/3OPvDqSIckRuScYy0DEMsVlKNFlpE5NrF301C/ fsIUYZ7D6T9noVToWUBrCSHe/RtF8bUEvq79AWWNTynEouQKLvt4pozkSShFBpLwMNhE OrxwoP3IRSgIB+OGBoY+C12aPHRdgE0wof5Kv+95cyK/eaFOjE1vI4giF973JcEUE9ud HS48xYzc5o4003zZrREta+Y8jC6ZkJ11dVwHToAhC041Uoab3SZzdK74yQSaLX8m6DOT JYtsZjhOqe8Mnz/JpvU7muSG3mH8bR+0brC2UVKMVhx/7lSXMNEgPp/EIL8nvldKGGYi kp8A== X-Gm-Message-State: AOAM531CrdnOavKWu2GDYmHWKYHX+HxfRpewF697fYgM2HglJy6jMfYa Aeah9ZQ4cBeQ0qGMiIggIzbYPMAIadY2hgxUzjGe4jk9+20= X-Google-Smtp-Source: ABdhPJymybWJzPI9lc3yaJbCl5c8M5vpN/e1XPH+3RrOT1EcIWTefgF3dD3VQLaVrN7ym3UOqrb2xXfJR1NCrrwjkUg= X-Received: by 2002:a1c:9803:: with SMTP id a3mr6308049wme.57.1597493252985; Sat, 15 Aug 2020 05:07:32 -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:185221 Archived-At: No, this does not work - it kills between the original mouse position and the position where the S-mouse1 went down. Funny is, it works on Emacs24 - probably because the mouse-drag-track in mouse-stay-and-copy keeps the S-drag-mouse-1 binding from receiving events. It seems that mouse-drag-track is broken, what concerns my expectations to it. And it can be reimplemented, as I mentioned before that I did - I just did not bother to reimplement the multiple-click logic that is part of it. On Sat, Aug 15, 2020 at 4:20 AM Stefan Kangas wrote: > > Adolf Mathias writes: > > > On Emacs Post 24, this stopped to work. > > Could you also explain what exactly your code is supposed to be doing? > > And did you try the following? > > (define-key global-map '[S-down-mouse-1] 'mouse-stay-and-copy) > (define-key global-map '[S-drag-mouse-1] 'mouse-set-region) > > Best regards, > Stefan Kangas