From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Context menus and mouse-3 Date: Fri, 16 Jul 2021 09:49:47 +0300 Message-ID: <83lf6669dg.fsf@gnu.org> References: <20200914061111.3trmuzhdvv7nwdcc@Ergus> <87y2acv2tw.fsf@mail.linkov.net> <83zguragqj.fsf@gnu.org> <87pmvnuyug.fsf@mail.linkov.net> <83zguq8n5o.fsf@gnu.org> <87im1dydhx.fsf@mail.linkov.net> <874kcw28zk.fsf@mail.linkov.net> <83lf686qqv.fsf@gnu.org> <87lf67fcvu.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33117"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, rms@gnu.org, spacibba@aol.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, arthur.miller@live.com, dgutov@yandex.ru, ghe@sdf.org, drew.adams@oracle.com To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 16 08:51:55 2021 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 1m4HhS-0008Pi-Qb for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Jul 2021 08:51:54 +0200 Original-Received: from localhost ([::1]:37674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4HhQ-00070t-QD for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Jul 2021 02:51:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4Hg3-0006Da-6l for emacs-devel@gnu.org; Fri, 16 Jul 2021 02:50:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50496) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Hfw-0006Em-Hh; Fri, 16 Jul 2021 02:50:20 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1494 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4Hff-0002S4-Bw; Fri, 16 Jul 2021 02:50:03 -0400 In-Reply-To: <87lf67fcvu.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 16 Jul 2021 01:23:09 +0300) 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:271284 Archived-At: > From: Juri Linkov > Cc: monnier@iro.umontreal.ca, philipk@posteo.net, rms@gnu.org, > spacibba@aol.com, emacs-devel@gnu.org, arthur.miller@live.com, > dgutov@yandex.ru, ghe@sdf.org, drew.adams@oracle.com > Date: Fri, 16 Jul 2021 01:23:09 +0300 > > >> And some modes like org-mode, flyspell-mode, etc. already redefine > >> down-mouse-3 to pop up context menus. > > > > But those modes define those context menus on special parts of > > display, where pasting etc. makes less sense, no? > > When the buffer is not read-only, I see no reason to disallow > pasting text because e.g. in flyspell-mode it makes sense > to paste a correction to a misspelled word, etc. IMO, when mouse-3 is clocked on a misspelled word, it makes much more sense to assume the user wants to fix that word than that the user wants to paste. But here's an idea: how about merging the two menus into one in these cases? We could add a top-level menu with the two alternatives, each one would then drop down one of the two possible menus. Alternatively, just make a long menu by concatenating the contents of the two original ones. WDYT?