From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.devel Subject: Changing default mouse bindings (was: poplife-mode) Date: Mon, 13 Nov 2017 17:08:12 -0600 Message-ID: <87fu9heq03.fsf_-_@gmail.com> References: <0ad9af94-11cc-4dae-841f-f2918342d1bf@default> <7f5a496c-1ea7-4f0c-a2f5-4e5307d7ee82@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1510614852 3536 195.159.176.226 (13 Nov 2017 23:14:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 23:14:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Eli Zaretskii , John Wiegley , Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 14 00:14:08 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 1eENva-0000c6-0J for ged-emacs-devel@m.gmane.org; Tue, 14 Nov 2017 00:14:06 +0100 Original-Received: from localhost ([::1]:56811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eENvh-0004qO-Ei for ged-emacs-devel@m.gmane.org; Mon, 13 Nov 2017 18:14:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eENq3-0006w7-A1 for emacs-devel@gnu.org; Mon, 13 Nov 2017 18:08:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eENpz-00049p-A9 for emacs-devel@gnu.org; Mon, 13 Nov 2017 18:08:23 -0500 Original-Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]:38341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eENpz-00049P-6B; Mon, 13 Nov 2017 18:08:19 -0500 Original-Received: by mail-it0-x232.google.com with SMTP id n134so2886253itg.3; Mon, 13 Nov 2017 15:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Fj624ZXDuldSSdNOCCiOm+FA6MJnThm9cyuggmKp8qc=; b=P7Fv0p7kBAJdd8ZZLVV3tJTQa70vPUz++W7GBM7OmoWOrRiLBnJnLB3o8Ei/DhrMaL V9wwcIvcfbVyZmahEXq3FYAwVz4I1rTqQNR32k4StPLvSjA0n7rdvzM5QUTXV4314pz9 gLudiXOcYDbDc/A2BSFgQWjydJR0kQ9cGxk9ojCrpmrKmuEhsKCreUpfuMK+3eNYc0h9 EtwOFTEcee8LLui5IfuHpNbVXbAyRLJyWAVS0wEMqWjY9nuE+l/YKFUGr8BeYqsvvxao OPNOKI8UnJVoME9DL8eDbvpfBMAp0gk1pA18ZFvMGvlz64x6/MOsdpE50/6h7AzePl5V NGDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Fj624ZXDuldSSdNOCCiOm+FA6MJnThm9cyuggmKp8qc=; b=qR2FaSsH+igGpyaTptsbKSuHkMdnNAWRnnlybn8S0lCh2ZaDROfoLU1QRJjKdKWGiK bnrg+Dqr/bx64wDIPoYhg8pot58Elb98j2fHj6vqfd1O6pnBSnPqY+uSJjBlc7fnXmi6 vuE5EbgWngvCpBNrNkN6+RlRw7Vzwnrhek4rhLihdUkWc+mEa8jlka1/Bh83P2Sx+fzV Hq7aEfPS/XRuTwWM/jJWDL0vNh2eMJNqrRS1hRee4bYzsKllH+HyMO1tw9yW+mfoW3WU +LSGF+uZIjHP3LYduUSnb6tWEajHtPLwh66y6oDrZXWf+e0+fpg6qOciOLfaQZ8DvR94 RWuA== X-Gm-Message-State: AJaThX5JHR23DFlJHtSgl802efKtIwt8Kuc+u1qK0nA0c/ZpEzQ/Hyni J+HxK/l0xXKI9aGX8w35IjVt/w== X-Google-Smtp-Source: AGs4zMZmrbuL+B+lkir1EVwlTJPIh4pxQyGlTik02+qIE2T1EhAluu3dW/w22un1ETtW5ugx/wt5qQ== X-Received: by 10.36.65.232 with SMTP id b101mr12893305itd.38.1510614497987; Mon, 13 Nov 2017 15:08:17 -0800 (PST) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id r65sm6363053ith.3.2017.11.13.15.08.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Nov 2017 15:08:16 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 13 Nov 2017 15:20:15 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::232 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:220164 Archived-At: Stefan Monnier writes: >> AFAICT, it's the only way, with your approach, to see >> the region you will act on get highlighted. Are you >> relegating your approach to menus that don't have items >> that act on the region? > > My suggestion is for a context menu. I.e. a menu of things to apply > locally. Nothing specifically to do with the region. The region is but > one particular kind of "local" thing (and the down-mouse-3 event is not > necessarily placed near the region). I don't expect that the region > would/will be the main use of this functionality. > > > Stefan Is it completely out of the question to just bind right-click directly to this context menu by default instead of using double clicks or long clicks? If so, will it ever be considered? It would be a shame if Emacs is never able to shed some of its old baggage. Drew mentioned that this context menu is shown only on mouse release in Windows (it's on the down event on my GTK system), so perhaps it should be dependent on the system? I understand being hesitant to change longstanding default bindings, but I would imagine that most people that use the mouse would prefer more "standard" mouse bindings; though without conducting a poll, this is of course wild speculation. Here are the two main changes that I think would make sense: 1. (down-)mouse-3 should open a context menu. 2. S-down-mouse-1 should extend the region as it does in many other programs. If the non-standard kill behaviour is to be kept, then S-down-mouse-1 could just be bound directly to `mouse-save-then-kill', but it would have to be modified to handle a down and drag events. As for the old binding of S-down-mouse-1, its contents should probably go in the menu-bar somewhere (perhaps in a new View menu as is common in other programs). Shift modified mouse clicks don't work in text terminals, so perhaps this shouldn't happen in such terminals. The above should still satisfy most use-cases that `mouse-save-then-kill' satisfies (either with S-down-mouse-1 or by dragging mouse-1 and selecting `cut' in the context menu), as well as providing, with a "standard" UI, the common additional functionality that context menus bring.