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 19:36:37 +0200 Message-ID: <20210820173637.efw6y7zl4j7dbgif@Ergus> References: <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> <20210820130304.7dv3umwlvrnngaxw@Ergus> <8335r41bqn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31222"; 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 19:37: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 1mH8Sj-0007v7-Qh for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 19:37:49 +0200 Original-Received: from localhost ([::1]:49966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH8Si-00046t-3I for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 13:37:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH8S3-0003SY-Kt for emacs-devel@gnu.org; Fri, 20 Aug 2021 13:37:07 -0400 Original-Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]:33112) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mH8S1-00086v-1g for emacs-devel@gnu.org; Fri, 20 Aug 2021 13:37:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629481023; bh=1Tb34TnFK1VQt/rw21IokzG6OaCYhM09lNuR2kLC/Wg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=MH34G8xsc1GHO/kcUFQBA1sxkvoK0Owzk+nbQYSNj0yKnpehi/O+tLBZDqwWnrch/S31jWyfw6XB8bLiDtzb16H0l0Lnp6KN9IZwSZ6jQbzEeBur2WNMtYHGKRJ69dW4G9hWX8lcuxrhzvXXPnri4VKzEzeJVkNpEamMeJVbHHM79Aa5Fc7OEsM+qiioMy0wlg7/w+iQK/iqVckS9XDJd/BiQGtBmmNAaCsBO+oWEOoSefP2/ukGopVBUltwpZFCCO7J8nMmvhvqbdgSjrRMGlwWExzOfS5zMbcL586VlRlVFsPEpVzp+Ta5vp7/4YSt/HuilMZC/j1EGGIhvHMccA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629481023; bh=bd6U/h9ftr7yoNMuxMGThOuroo5zfVRkBYPQyqjIJS9=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=BXIkSH9SCDOeZQ7tkv0TvEsoUhRZdCEdSjmE5Uc8WVCEq5FFpeI8tjdBTb80/2swbh/rd8LoXQkm4VWJfJqTP/tpzAuwPUc5I/dM7Qqh7Mrh+gnT5KMNZj5ZqD639Z0MPcX8HGVhDe9c2AhDd6IjPRNGuueZAG9pcEkBaYYaBb00mtgyAThkK1wFclCmsULVNV7wqpU4kfkaS+VneCZSwTPcPKoYmcSLZYHB6wItYntBZrTsvE3fLlCD8q8NX8OLjtnLzNqHky6GAbWSZ4axkg2xOmELWwXxz8FJ1o+PzBKKT7KINARwNDHZxb54CSAZii7+UWIMoDdFVP83fxLXlg== X-YMail-OSG: cmuX_g4VM1l3pPKwwA.4vBDkJPkh2G13LtrlcN2PQngscx2XEB1woYVf9EKaUrh _oWvmOkIZLtcsLFenslxRzSyxtjT3WHdfoO_2GEt5tC.mi6hev1WeqLjm1g5F3V7.76dBaboNogM 1ON5gpGOdDhJ2_8Ww6CzsbcuhL8ciLr860KmQc.aW2XkSLTa.uUA2yjm047Q.u6b2mbpDFDW.sxg i2_qxSJqoV2Mufq.HtmlWBl8EYKremc6PliBaXr3tszIGeBpyndbuJBTVPBj85i.SCfRaGz5sebl XYsq7RxyPsSKE4QHZdh7V4CHL2uov.BaC4uYpknhGY._z54j06K2FLYUMJWotC7VZSs.V6Kysy0R GRBV_jt1jNWXp9SSoCTnrpikhns0zlJaz495sF2cNC5f8st5s_EygHTpV_HnOdW7i3Oyz9tMRrJm MAGM.PM2z1Bp0bNFXsM3Fm5coYLaoaU67KO5JoxY3uvv3GAL5KZZIAUdn8_jUsfEoaxQLIAn41Ai tLSIex3MSxIOicjEEf5iSBsNg8M3o_4UmvFkHWXfg3PUL_Q8gEm15p4vDYTgMtJVVOLxrhDlWH_6 lz8jQLpjIB9VoPCGjvkP9XpFzm7ZRlxktMxRB19MN6bhQH6lSiDROpH.TVL5N237rvhA9lr9kLyG yapRlmqa8QvJq8tDaymq6Mm9WHxOyoLNqz0aRzPi4Ac.tOHUP3tTZzxErxhFLYIGtMYCyEfknAMh CrFFAaNtn_nTjfbm91CQzhErSISwg6b5h9.FwOZdKns8fhylLcYW5u9WliPHuQNyw.ktUSHSaRGA djwKtyjxhXtMOXkTT3UFp3_oiyuBFMIvUrOpbTxYAc X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Fri, 20 Aug 2021 17:37:03 +0000 Original-Received: by kubenode509.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 83d163c24b5521571015c8aa92fe0cd4; Fri, 20 Aug 2021 17:37:01 +0000 (UTC) Content-Disposition: inline In-Reply-To: <8335r41bqn.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.135.42; envelope-from=spacibba@aol.com; helo=sonic302-3.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:272736 Archived-At: On Fri, Aug 20, 2021 at 04:34:08PM +0300, Eli Zaretskii wrote: >> Date: Fri, 20 Aug 2021 15:03:04 +0200 >> From: Ergus >> Cc: emacs-devel@gnu.org, juri@linkov.net >> >> 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. > >I don't think this is true. > If I do: C-h k and press mouse-1 It shows 2 events: There were several key-sequences: at that spot runs the command mouse-drag-region at that spot runs the command mouse-set-point But: C-h k and press Control + mouse1 I only get: C- at that spot runs the command mouse-buffer-menu (found in global-map), which is an interactive native compiled Lisp function in ‘mouse.el’. It is bound to C-. (mouse-buffer-menu EVENT) There is not such event like C- So this is actually the issue. >> If this is intended, then it is the reason why the context-menu behavior >> is different than other menus bound to modified mouse events. > >Are the bindings near the end of menu-bar.el relevant to this? > Maybe. There are mouse-X down-mouse-X S-mouse-X S-drag-mouse-X and C-down-mouse-X. But not any C-mouse-X So maybe this explains what I described above.