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 15:03:04 +0200 Message-ID: <20210820130304.7dv3umwlvrnngaxw@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="17688"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, juri@linkov.net To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 20 15:04: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 1mH4CV-0004JQ-PM for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 15:04:47 +0200 Original-Received: from localhost ([::1]:39894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH4CU-00087y-9O for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 09:04:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH4BK-00075b-Km for emacs-devel@gnu.org; Fri, 20 Aug 2021 09:03:36 -0400 Original-Received: from sonic311-13.consmr.mail.bf2.yahoo.com ([74.6.131.123]:42828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mH4BI-0004N7-PZ for emacs-devel@gnu.org; Fri, 20 Aug 2021 09:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629464611; bh=HiEJ2q2L+tbMOeSYRsh8duaX17OIx3W8eTUuQ3wimjo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=h+kpyc0V+aHiYOvldsNAhXGTeQH2DJb0wJjvuZuJvCygYyjUOG9kLLAtvu62OL//fx0jLK8J8hNix/ZFtecrcYK0aW44y3bdfZtoeH0R8luM58bRTVZaDqD8h2GIjIIX8w0r/H0eFPPJydPz+dj9YBs53fydz0P0XhBdB9cm42C7r1IUlB92InFs95l7ei1wiZSRb5O8tRKvX77QyoH5pafRRNZUZdxcKaX7T+2gwH/D7Ji7mYe0VnTe5EQyHt5C8dOE0BXptkCzFAb0vFDp3V3auHwYT7xkJ2ZZ6Ma/W1nU2Ogt9w2HS160aGfyg52YbtZjPUWNA2cpjzIqHmV9kA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629464611; bh=djxJMB+if+i/V6G02BmXj4fyBXt0+oltVKmq3CazFTB=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=RSRwqGmO0ZCPQDIlozdHcEhvXlJnkhkWHDnwFFmN7ujJ9nHmMDd4rwiRKvVMPHgfUsjK/4Xb8wEAfO5z8u4732azUhw83OWwhJnskm4DFwFc30M99eUj3qXDAJAK0j17Mfoz1XlfTvW/FLMvpTqkd5fctAZk738c1ENW8a7L5ZGI9pFcFpyPbKi2XvpHEuKzTJVf+lRrfxc+/FNjk4pOcbxUL/4EVV3Z4uPo9JpsZeoDh5sjtrRynUjVVhUgQ73TzvBU8kJ88T5v0eOY4/F68jfLtGDK1DGSpwSx3IkBQtyetIKngvjXmGko/IFWIy6nMNZyhNdO0vtzN1PEH6ejkg== X-YMail-OSG: 8yJJ3x8VM1m1edljss3pybzjZjPMEOO17nmFlnVwqVMQCctTd8Y6CyqVCOiQLc7 oW0Opl6oD0mIin56EL3R7OADOeAA65g1R_2RgYFdYdd.DTBArHanctaOmUy9ljgajkWqcmi7YUL3 m0dgWTWP0.QyyAtE6BnEiuxvVDASlMaEKjygU2jye8Co4SUGvSKuAZ4_JVR4_v2vaz43YirOmY3B pF_AjnK1dqIk2iKN3lRpLhgqDxmaBcs7JMuIihqEu2OHbtL6L5LZ9bjlx2HtyJWC1oiZ_kdx9y5q vaD6TOXMt4bqce3T3kcjD8.iSFErV4Cy2LUsczVBOqUeJGgPkftam2v1cmd14Ts2PKW345_Cvvcd iUnyVgoepeD2HpNXqrWEopmZTiowcCQEAh1zns8sPhIbSEChlCZB5tKjSSgl7WABZagr6CfzIeob btSKiBY_6lyq8NbwdXFTVO7APhX9_NScCU.3Cxbe_LCjzKjO0ULoXQf9VQS7FBPxjyUeduboM03j s1zsiYdZK5XqumkU8mzDCQYff06vHItuenyHjonWHFwJMJC1B_bzXbKblx5bmvs95komT2TCHD42 oe8vSfXA2wLfFXj4Ea0gFkxivVaDUBmDdiGTwjY5AZtEuSRHsesy_ok7c_M3jo4_3pTi1x77ub_i ssJ28UBjWK5biSHAfnIzwfRVSEPGhm08ze5tpF7AGXhNIg4sBkAdfLQ8QwSSibuVyRfjqSRU3cD6 ifbEz3q6WMnOzCLotlHoJ0vjyygT8WtxmBOgqcbfVVHmMm8q6pEoeX2nsPHRgjLq9VKqEIioOwW8 Y8yNbOsg6F3fNi7gY2_G7g7I7r0jKZYtCxFxMSkvJy X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Fri, 20 Aug 2021 13:03:31 +0000 Original-Received: by kubenode531.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID dc5bca1bf2d4462fd28c709c275dcf27; Fri, 20 Aug 2021 13:03:26 +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.131.123; envelope-from=spacibba@aol.com; helo=sonic311-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:272720 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. > Maybe the problem is that mouse-N events are generated when we release the mouse-N key. But no C-mouse-N event is generated when Control is hold and mouse-N key released. If this is intended, then it is the reason why the context-menu behavior is different than other menus bound to modified mouse events. >> 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. >