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: New Context Menu Date: Fri, 20 Aug 2021 15:36:33 +0300 Message-ID: <834kbk1eem.fsf@gnu.org> References: <20210818120834.i3orh535tb2enpos@Ergus> <8335r7546s.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, juri@linkov.net To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 20 14:39:03 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 1mH3nb-0001yX-8H for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 14:39:03 +0200 Original-Received: from localhost ([::1]:51746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH3nZ-0004Df-Cw for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 08:39:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH3lU-0002pq-IR for emacs-devel@gnu.org; Fri, 20 Aug 2021 08:36:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53208) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH3lT-0006Yo-JN; Fri, 20 Aug 2021 08:36:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4113 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 1mH3lT-0000Vw-51; Fri, 20 Aug 2021 08:36:51 -0400 In-Reply-To: <20210820122605.bewzngxm3w73yuif@Ergus> (message from Ergus on Fri, 20 Aug 2021 14:26:05 +0200) 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:272716 Archived-At: > 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.