From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: New Context Menu Date: Wed, 18 Aug 2021 14:43:09 +0200 Message-ID: <20210818124309.wvd4vhzv6sgsujdh@Ergus> References: <20210818120834.i3orh535tb2enpos.ref@Ergus> <20210818120834.i3orh535tb2enpos@Ergus> <8335r7546s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9370"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 18 14:44:49 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 1mGKw5-0002EK-7X for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 14:44:49 +0200 Original-Received: from localhost ([::1]:36368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGKw2-0002iO-C9 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 08:44:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGKux-0001vw-Aa for emacs-devel@gnu.org; Wed, 18 Aug 2021 08:43:39 -0400 Original-Received: from sonic314-13.consmr.mail.bf2.yahoo.com ([74.6.132.123]:44443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGKut-0002IJ-MD for emacs-devel@gnu.org; Wed, 18 Aug 2021 08:43:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629290612; bh=1vrg5iOcWP2bufjlbN58NWcVGeBBp/bw3Qz+mD9Gc2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=hn6wNNbCeEW039xKIb5oHjJGbceXdDG1nlVRN8z2WnLAd85NVX/3EN7eMqnUIQevU7ZTAZNjbnwwxwQ1L7v7qoA44lCkzQ4/rwC+20zKzNXbxzA/IYPrz07IiwwtlM3OletVi1xzvnrLrNiZ99WucdOeQfnt2s0JD76N5rW1UYTQZ4ukQ61ySkOFDxJgFCAQpivh/+EEFE2qbHz6HoBujQfHAMissBuTigX7Pw567/xd7LiiKSoMXANdtwPHoOf82D1ENffNYmguFtEbdgUU566Q3DqwoCK4Mdfo3gq+mzfkGMEoIS2S0qWDsqR+cVNxlkUH0FICvRAz9PldW/TOLw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629290612; bh=t33rQhhVXz7LpfMYTUaG1OwqEIOJfyAhXkjUb5BHcF8=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=hJFfmqrZs7twwURmfwMAPkoIKvwpYkJpkkGYtg4Vo+0fbmZx00VS6uYaIwvnnbjxwQCoSjaZkUpDNpRgvR7KU745bT6aosTJ3FndMHB32EcTf8c9CwuXWpR0q1Ao4FJHqk9NB7lLV66KNUNBuZIHBbjkmiTn2GmCQVPblnjsxbIP0FCwn9Cl8Okwq8XkzmvMlyY6fvpjlmMbfdkIlfg8DWoChoa1Kl71Al7lnm9f+migOCzEwCXFrknDFOZPy6GZLMrFA7dRjyvylh1JY13bdeWRb+JasyegDLQqlhIHLzvBDisLJfr4B1kJ8KwuR0XMUrv4vFY181VzTFermi6OVw== X-YMail-OSG: j_L4cioVM1nbDrX9.gDDVdq.rW2qF7sKYlkR.eu40CgqkXb4QP.3FFQUHU.jtFa QJn.Hk61HHIySEjE6exIeruO7i.VvFL.4JZrzPR4hDlsFXUCuTRdmhUzb3y._MHl8AtO5dvtgKEY 8v4iIvPO0FbMsJCvTlSoj52pfGFArw1OmrslC2DXH0YLRlZLmUFklZSvJKDvEDFc8BF_rerkurQT pyG6DFlonWfh4zG4pBJN5AsPveCd.mG6RKrcu8JefcZbxizYavtHRKcRQfvpQyKq7rUPbNKmnQR8 CHXI0kH3YpBGEop3TeShqvcfvJYSB8XTWxybbuPJzQN1lRx0jr2AY.m4v6Mod65XejlYX6dhdaua afl6yYYTzlxI7J5Ut4bdSBmO4Hdeylm_ry2fr6NgVxlg6Xvg5UsKvSjm997HiCjBiyvYxRY7jtJl WFvxu4cvKB_qIPOHABJgdWhYqVHNADD63M5t8LaabJP2Cu_Npwzy.fVvGeMn2YnYJFh9.Pym9onF 3u.jr70pxug4HDrYYT.WfE2RrU25aAidpScDh9DRmacqorwJfx_Ofdlw8HLddYqMqrFPky5ESJWb meuT7SGV8YdCgBbZqgAhk94fbW65QTm4bF33oBbQajwCPGTCP6FPmU1TsAcrzPPU8QIygUoEo3IU oeHYF3gmefmSDO_IjvsweFCzXVzG0vdL4eDfIFZEsbyYX3mZVmZRcfmHORFnokwbZ4hQGyzwjpcs faZUNolcT.QDuAqN8L.5m_tKmozjJD.HaGvOqiWu7CgIOptCTCaf2H2wr5k8ziJRNOntotWtMr4e GQcSP7sNMsL2lPRlJdGqzzc4JSPLnisAFagOgd69Cv X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Wed, 18 Aug 2021 12:43:32 +0000 Original-Received: by kubenode552.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID fb98e9eec292fe11bbc1f451916e3ddd; Wed, 18 Aug 2021 12:43:30 +0000 (UTC) Content-Disposition: inline In-Reply-To: <8335r7546s.fsf@gnu.org> X-Mailer: WebService/1.1.18850 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.132.123; envelope-from=spacibba@aol.com; helo=sonic314-13.consmr.mail.bf2.yahoo.com 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, RCVD_IN_MSPIKE_H2=-0.001, 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:272562 Archived-At: On Wed, Aug 18, 2021 at 03:26:51PM +0300, Eli Zaretskii wrote: >> Date: Wed, 18 Aug 2021 14:08:34 +0200 >> From: Ergus >> Cc: Juri Linkov >> >> The current implementation follows the X11 menu interaction pattern: >> Hold mouse-3 to keep the menu active and release mouse-3 to select an >> entry. >> >> Could we add an option to avoid this and have the same interaction >> behavior than in gui please?: mouse-3 activates the menu, a click over >> an option selects it and a click outside the menu hides the menu >> >> I know this may be something external to emacs itself; maybe it is how >> xterm menu behaves, but probably there is a way to go around this >> without excessive complexity. > >I'm quite sure it's how the mouse support behaves, and has nothing to >do with what Juri did. You should see the same behavior in any menu >on that display. > >It works for me as you expect on the w32 console. > :( I supposed that. It will be hard to have such a functionality in xterm then. And no other terminal works completely fine with emacs for me. >> Maybe this is ask for too much, but I am wondering that once the context >> menu will be released with emacs 28, then a lot of packages will try to >> implement such a functionality in a hacky way with advises/hooks and so >> on and they won't get properly maintained. > >I don't see how this can be worked around in a hook, because TTY menus >are implemented entirely in C. > Users and external developers may try their best it this annoys them enough. >> In case the user wants to bind the context menu without using the mouse >> how can be done? Will the context-menu appear in the current cursor >> (point) or in the current mouse arrow position? > >We could do something similar to what we do when the user presses F10 >on a TTY frame. > On tty the F10 menu opens in the minibuffer. It would be better if we can just show the same menu than with the mouse instead, because it appears in place, closer to where the user is editing. And the experience is a bit more consistent IMHO. >> I know the context menu without mouse is a bit pointless > >Why pointless? menus work on TTY frames without a mouse just fine, you >can move and select using the keyboard. > But context menu it more mouse-oriented in general because it is a need specially for more mouse oriented users. Why to do something like F10 + arrow + arrow + Enter: when you can do just M-w? Or why to use arrows if just used the mouse to activate the menu?