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: Fri, 20 Aug 2021 14:59:26 +0200 Message-ID: <20210820125926.acehystr6ykeb2nn@Ergus> References: <20210818124309.wvd4vhzv6sgsujdh@Ergus> <83a6le4rz1.fsf@gnu.org> <87pmuaoa0u.fsf@mail.linkov.net> <83lf4y36uf.fsf@gnu.org> <87a6ldzzh3.fsf@mail.linkov.net> <8335r53m9i.fsf@gnu.org> <87zgtciom8.fsf@mail.linkov.net> <83a6lc1hnz.fsf@gnu.org> <20210820122605.bewzngxm3w73yuif@Ergus> <834kbk1eem.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="7949"; 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 Fri Aug 20 15:03:00 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 1mH4Al-0001nh-5C for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 15:02:59 +0200 Original-Received: from localhost ([::1]:37642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH4Aj-0006Yw-CC for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 09:02:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH47m-0005gf-I1 for emacs-devel@gnu.org; Fri, 20 Aug 2021 08:59:54 -0400 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]:46705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mH47l-0001Uj-45 for emacs-devel@gnu.org; Fri, 20 Aug 2021 08:59:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629464391; bh=EbdbhkPfIQO2mCE4aM3kbkQRbyrEmzlma5JC16M2lT4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=sLfE9IlsQIk922JEgpNNJMCcV9w44OSIe2BZwneOkzFCviWwkx3J/8Uv+2pnF7QoiMbZXgiTaiQvMWhcfl6Nl0i28/zKynWp704QWRELYge4S1sAxxGSYd8aLlrckgaRn9om13zTLgySbwjhDHY3bhR3OLENRQEviqy8d4HgAKRK1G0nvZeWpdRCNYwe7GIEUVvCWg/YtZpdw3JdDCXILW1bVS4I61vWjsuMEhUp5Tvr/wdOs/StG8UB4nFdX8yC7zKQbwLS45dHYC8X/9qQZzpSDpekUzRHN5c1ShCP8t/S4c8GBQRQ+rHLxzSICvDPW9u1PSWryJUg9RtDF1s5jQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629464391; bh=rhDiKqbfvLEtNWfHNCs6k/oYN++DUYXQ+iRxyVyEEWe=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=eWo4XvuNZGjxOT04iq6diIG1NnOvwF+is9KEXAQ3OK2F2CRZt3IEjrgy7DT1/qMcAy9JVwGCcKO3R8azu1ec5iWSI2MbZaK3w8nwSixYO3ZFFm/x1ydx6t8QnPWiFQaOrIzvDd/VuJNH3YcGaYqhQZIqpnl5JAPn6iQxOtu3v2y9YPdPdsigjqcCdf1hPu/jaBZLSfJWSsrJ/5WP/QGFL2Bb0nv2Tx6mb+z4FU9clp8LSAeUAlDOcyPmabr+VkwoTN/5kcBefVA5OJyv9LFpV1b1/LfDS9rdtfhWTeQGpv5ihsnY9YW4OHcVzSv0AxM74BKJIf4BQKlamPXIxraMbg== X-YMail-OSG: WwuDEi0VM1nkp6sTUy3kgX4bkfU57wNAAYesrm8UeINLm.o4rlvF0KRXz68GjP9 0dFUT4nAMENLgRSKmPLWSlmsIohTHJf0A0gy6gPM7GUh1purSLqkXIVG9im5KWjsNR9UZjJbnjkF L2Xupy3MEnIj8TQHfvHEkRdv9W5a4SoWuBSZyJk2EoFZu4vyIzYpJ_Wnt5RpK2hOldjAy5.zz_7Z 8uw_OAhLGsZkACm.HoyT3GxDFAACBBxtCzKmBaFBTyr543xKandd_0pt2X6zBexKI.szTYfDondy RT4jDdEJLGrXIpFgIMs3orsYbMCCJYsXl0fLOhbdgYzsUadKsPyMKQvcVgINiJ24kbAA1jmxPPqT sozwjybzNqf9zYh.me3AFT7L10yfBq_MQFseU_XhYg3p6nYyg_uaIBLhbzrFR4D0_GtB0tEhKS08 iQ.Vez0fhPktVpVMJ31vkU.KE8sHEfp5dEVHG9rAdVeualvb5Puu2691mmqELbF4aWbtYTHGWvBW 3.1HBMRnibrXrhBnO2w_NDq37Ysf0hgr8ntpOaqrwWdaEMC3BzcJnBESCJEYfNXfuVT8CwndUQQd PWyYm.RH.MtkMOXnIEIj683p46inHTPcgUMY.9PYhlbTXwOlM1cDBNIZb.QrlBAJbuEcihGfMAsu 4E6SIBrNGf855OYDxbPSMpgbW1NoW4IBAbLGl1qUZSixzSRSvWE7Qc_365dzYGYSDUN7_t9DxIAe tILz_QZs_uN6eurxsu3Wnb_S9jhuhg8uiHkoxBwxHFebmyXp6n4ppi8QVv.RIhCq8CrvkSHencB8 wNsLABEm93l5rGHRNuU2zLKRmXxG6zCyUszQXCf0r6 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Fri, 20 Aug 2021 12:59:51 +0000 Original-Received: by kubenode514.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e7159534595976ced2d3eca6ae637fc2; Fri, 20 Aug 2021 12:59:48 +0000 (UTC) Content-Disposition: inline In-Reply-To: <834kbk1eem.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.128.32; envelope-from=spacibba@aol.com; helo=sonic304-9.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:272719 Archived-At: On Fri, Aug 20, 2021 at 03:36:33PM +0300, Eli Zaretskii wrote: >> Date: Fri, 20 Aug 2021 14:26:05 +0200 >> From: Ergus >> Cc: Juri Linkov , emacs-devel@gnu.org >> >> >> I don't understand how the behavior of the context menu could be >> >> different from the behavior of the old binding [C-down-mouse-3] >> >> when both have the same implementation. >> > >> >I cannot say I understand that in detail, either, but the fact is it >> >does. Maybe it's translation from C-down-mouse-3 to C-mouse-3? >> > >> No. C-down-mouse-3 is a modified mouse event; emacs gets it but not the >> equivalent up events (C-up-mouse-3 for example) but it gets somehow the >> up-mouse-3 event. > >There's no up-mouse-N events in Emacs, AFAIK. There's only >down-mouse-N events and mouse-N events; the latter are generated when >Emacs internally sees the Nth button pressed and released. > >> For example: >> >> Try C-down-mouse-3 then Release Control and after that release the mouse >> button. You will see a similar issue. > >What issue is that? > >When you do what you describe, Emacs doesn't generate the C-mouse-3 >event because it never sees the button released with the Ctrl >modifier. This is expected and documented. I know. But this is actually why menus behaves as Juri says with C-down-mouse-3 but not with down-mouse-3. Releasing the mouse button with Control hold seems not to generate any event. While releasing it without holding control generates an event. You can also see that in the menu, if you release the mouse button while control is hold, the current item is not selected. But with context menu when we release the mouse button the current item is actually selected because control is not hold.