From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.devel Subject: Re: Context menus and mouse-3 Date: Wed, 16 Sep 2020 17:39:41 +0200 Message-ID: References: <67FBE6CE-73C5-4C14-8531-AB55ADE3CC36@misasa.okayama-u.ac.jp> <83wo0t7qjx.fsf@gnu.org> <83mu1p7odj.fsf@gnu.org> Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12770"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tak Kunihiro , emacs-devel , juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 16 17:41:47 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kIZZ4-0003FU-Bn for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Sep 2020 17:41:46 +0200 Original-Received: from localhost ([::1]:37408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIZZ3-0004bi-Bw for ged-emacs-devel@m.gmane-mx.org; Wed, 16 Sep 2020 11:41:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIZXI-00037u-TI for emacs-devel@gnu.org; Wed, 16 Sep 2020 11:39:56 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:35214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIZXH-0000HX-7B; Wed, 16 Sep 2020 11:39:56 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id y15so3545853wmi.0; Wed, 16 Sep 2020 08:39: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:reply-to:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=RlpqIq6wYBbvZFx4HO1sTTnaprT6k2CZlGbYZstcFLU=; b=IkdFd4oyPKPWSVfFUBdhOafFgHDvNLZX8JA/fn2voIs0RID4tHMNzxCzp2J/19mKer H8WdgcKGQ+CJizTeWUvwQl+W6RcZrovVCKWW7bZ1xXWINi/Of2uKhggbXVgsSqs6bkve wq7Dj4zthxs4PXADAL2NoRsoPSotYhtKvgSZzA476ACvkX/s30v61tzT65maxLPiQLPh teQr+LDSBmbPm58Te+XtFT3nOZ/HRgfPOYI6L308g7nzvVYuCfXNnI6RhuLsaTOqGKDC osxa8+n11DztZM0qV/lUoh0Nfi1TwKx/7uXI5/DszoxY+P5B/3/ZDjt8lA/PKKsQDIzn l9Ew== 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:reply-to :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=RlpqIq6wYBbvZFx4HO1sTTnaprT6k2CZlGbYZstcFLU=; b=L6hjDPiLONeRcGlhq3pa3JcvjqlpY1t2UwDkPYzTuJtWVazWm+78bNiXnlpRcvdh7A S7vqjXy2HlaAlm15VP77uVRrow4BpLW1P80szaUnYacJI/RXCoGT+jTnxEgtnr26IhsQ lZwNQvuTgso+7YSClBXXKOm1R13DaOZ/w+pJDwRjjRjsbdTMxGw2EdcoDuyR5KFaDY6b BWTLdXjl+btDNJZr3ykZ8/uH+X5zrJ1frAaMCR3JvTzsxcoSeN/hiSZJ8TULd3+p/hxm p5F3YR4O0oa7CcJNWfxb/RThKeVGvEam0Dm9dHzhUbfviMwoJHNdChI3J6ajxvhg05J2 niAQ== X-Gm-Message-State: AOAM530xcNfce1OT/qzq4QQmTF7XTWgLDZdfUsLeKiJY+w+/dK4Rr0n4 DtwFZFevHtg5oxJuulGzJLaddVtAcJhtRf3kEKBYVigzuJ0= X-Google-Smtp-Source: ABdhPJzbb/fgb1uhp1KuncsuujhHRGGO0Nz2Cu/r2Ktme1ZIj1AypzaVXTbcKnUQWCb0jfeVimms0pnj5p+lT4QDnXM= X-Received: by 2002:a7b:c4c3:: with SMTP id g3mr5545996wmk.128.1600270792646; Wed, 16 Sep 2020 08:39:52 -0700 (PDT) In-Reply-To: <83mu1p7odj.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=thibaut.verron@gmail.com; helo=mail-wm1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:255898 Archived-At: Le mer. 16 sept. 2020 =C3=A0 17:06, Eli Zaretskii a =C3=A9cr= it : > > > From: Thibaut Verron > > Date: Wed, 16 Sep 2020 16:37:16 +0200 > > Cc: Tak Kunihiro , juri@linkov.net, > > emacs-devel > > > > > > - Horizontal scroll by wheel is supported. > > > > - Moving text using mouse is supported. > > > > * Contextual menu is not supported yet. > > > > > > Yes, we do support contextual menus, just press C-mouse-3. > > > > It is only contextual if "context" just means "major mode". > > That's the "context" that we decided was relevant. We can decide to > give it a different interpretation, but that doesn't mean we don't > support contextual menus. We can go with that definition, but then we will have to accept that it will be yet another point where the Emacs language differs from the usual understanding. I don't suggest reforming the language to fix the existing such points, but I believe that we should do our best to avoid creating new ones. It seems easy enough here, since the C-mouse-3 menu already has a name: it is the major-mode menu. By contrast, the suggested library mouse3.el does offer a contextual menu. > Also, please don't forget that we have the most popular > context-dependent action for mouse-sensitive text on mouse-2. [And in the absence of a context, the same button does something useful too, but with a confusing twist (the primary selection which is neither the kill ring nor the system clipboard).] I don't find mouse-2 easy to enter reliably, and I'd much rather see those actions easy to reach in a mouse-3 menu. Also, as pointed earlier in the thread, there are still mice with 2 buttons, for example laptop touchpads, and the buttons are typically mouse-1 and mouse-3, making those actions inaccessible. [It might be related to the fact that most applications and most users call those buttons mouse-1 and mouse-2 respectively, mouse-3 being the middle-click. Cf the aforementioned language divergence. :)]