From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Changing default mouse bindings Date: Tue, 14 Nov 2017 14:07:45 +0700 Message-ID: References: <0ad9af94-11cc-4dae-841f-f2918342d1bf@default> <7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default> <87fu9heq03.fsf_-_@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1510643329 15759 195.159.176.226 (14 Nov 2017 07:08:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2017 07:08:49 +0000 (UTC) Cc: Eli Zaretskii , John Wiegley , Drew Adams , Alex , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 14 08:08:41 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEVKq-0003aa-4v for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 08:08:40 +0100 Original-Received: from localhost ([::1]:57932 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEVKx-0004ef-1a for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 02:08:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEVKM-0004eZ-K1 for emacs-devel@gnu.org; Tue, 14 Nov 2017 02:08:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEVKL-00028m-Nd for emacs-devel@gnu.org; Tue, 14 Nov 2017 02:08:10 -0500 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:48639) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEVKI-00024o-CS; Tue, 14 Nov 2017 02:08:06 -0500 Original-Received: by mail-oi0-x22c.google.com with SMTP id b189so11705461oia.5; Mon, 13 Nov 2017 23:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7oO/RKFHTsqo5YSesdmfeDZU1cevIslEjqWb9XvG0mQ=; b=T+Z4slghFYN8AH2yxKdJfMnkDZgByrSywsi3q2MA4XIEXuAA8FFCj8jAYIgWyuA8j0 mGSDYvmeA+20Ze2mMhQJoU+2Q8EVm0PsI2GddVBp05UXmq28u/SVpjyBVl8yLnIewWDG 3y+78anJZHo/SNJyLLErf4TLSMft4nU8bgNl8xZB1uzpwDws8yuuEUHDPCCfKrqzxsde dXZeTy0Iq7QSB4tuhqimBbc3rsODAg4CesNP7qkVvknghgQQP3HcT5e0ATISNNTWKTSl xy6K+J+ZAAMM2O3H48y91ji8nV4orRpWX+2OERJm8IBh+gt6+tt7vx9dpmLd52QkMFJP 3OzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7oO/RKFHTsqo5YSesdmfeDZU1cevIslEjqWb9XvG0mQ=; b=lBrGrDzAKf4LcLno94jqwgbNadPjClu9uWY4Zo51CMQegAyaErjlQIGYYUxiUQa9c3 GBd+jOH7vIEgvM7m4S5aZksx+a8cSq0wmyRHr934q7wnkHegOdBYoTjhEkOJZ+evENhL BHXEen8vJe4/deRbxRgY5jM08QsiR0lrDx5NpwpLJuhioxLlad60ACEMBaco5HkCt8Xi m9CF52nbaD+yLB9wSosWmi041wB1lZYFfRwTEw/xJ/1lXEBGyukuYW0+dxtal8owgciJ YzQzcbOrbEW7faVCQ1RC+hdidQQ3DXDcAfhb5OELtNTWIg1pCHdbsigPE3xzakA2LaKv QtTQ== X-Gm-Message-State: AJaThX5JmB/a+UomuhSJ9x2cxiE/kMKp12vfkgARIdhd1c5gjZILX/R5 z/IcR+XszMAuLDmO6xqZcRNYCF8iqfdkGAqf6Jg= X-Google-Smtp-Source: AGs4zMaEIdXPedM1DFVB56BkXwAK6eLl7x7gAFXU24DOeu1PvQBGFQ3/ePOqfjoGvRcPbgobwAeGiN9ajfD/76hdnUY= X-Received: by 10.202.80.199 with SMTP id e190mr6034433oib.80.1510643285498; Mon, 13 Nov 2017 23:08:05 -0800 (PST) Original-Received: by 10.74.139.130 with HTTP; Mon, 13 Nov 2017 23:07:45 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: re0up6k2hTnZL_SDsTV6JBInUqM X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220169 Archived-At: On Tue, Nov 14, 2017 at 9:50 AM, Stefan Monnier wrote: >> Drew mentioned that this context menu is shown only on mouse release in >> Windows, > > Sounds like a bug. I'd expect that it's easy to fix (tho I admittedly > have no experience with Emacs under Windows). No, that sounds like a feature. In general, showing the context menu on a mouse up makes it possible to perform several different gestures of varying complexity: * Simple secondary click: mouse down, followed by a movement not exceeding a few pixels, followed by mouse up. This normally just shows the context menu. * Secondary drag-select: mouse down at a position A in text buffer, followed by a movement across buffer text to another position B, followed by mouse up. Normally selects a region spanning from A up to B and shows the context menu applicable to it. * Secondary drag-and-drop: mouse down within a marked region, followed by movement to a position outside the region, possibly in a different window, frame or application, followed by mouse up. Shows a menu that offers multiple actions that could be done to the region and the target position (move or copy text between buffers; move, copy, hard- or symlink files across the file system; feed text or file as input to a program). * Mouse gestures: mouse down, followed by movement in a well-defined geometric shape, followed by mouse up. The action performed then depends on the shape of movement. (Firefox 57 is scheduled to be released today. There is much wailing and gnashing of teeth over not being able to use mouse gestures any more because on GTK3/GNU/Linux and macOS the context menu pops up on mouse down and the new extension model does not allow extensions to override that.)