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: Sat, 21 Aug 2021 08:20:47 +0200 Message-ID: <20210821062047.djoaxquzelrbbnch@Ergus> References: <87zgtciom8.fsf@mail.linkov.net> <83a6lc1hnz.fsf@gnu.org> <20210820122605.bewzngxm3w73yuif@Ergus> <834kbk1eem.fsf@gnu.org> <20210820130304.7dv3umwlvrnngaxw@Ergus> <8335r41bqn.fsf@gnu.org> <20210820173637.efw6y7zl4j7dbgif@Ergus> <83wnogyost.fsf@gnu.org> <20210820180805.hozyplizjgbw5voc@Ergus> <83v940ylxu.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="29648"; 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 Sat Aug 21 08:23:35 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 1mHKPn-0007Y3-3N for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Aug 2021 08:23:35 +0200 Original-Received: from localhost ([::1]:35412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHKPl-0002Qh-W9 for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Aug 2021 02:23:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHKNb-0006lQ-SR for emacs-devel@gnu.org; Sat, 21 Aug 2021 02:21:19 -0400 Original-Received: from sonic314-15.consmr.mail.bf2.yahoo.com ([74.6.132.125]:41227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHKNY-00032H-Ve for emacs-devel@gnu.org; Sat, 21 Aug 2021 02:21:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629526875; bh=Egb8HPsvd3SlDvuma/OVok0s12RtKx9+0fTudMjvXJw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=mGmTxapZVIhtepMp/KP0qz/jzmaWXHBT4XbEtJouxc7l3Jus/ceG2P2m8Qi3GHvHEIrqMLa3DKYVdmsXyiP6kKmtxgU9P6YyEFZ3y/OAYw3OPsivleC9vJ3ETlnBT2Isej8RjcAXPNQpkHoCzoaoVa2uuEZSBzSS3GJzCcRc4rdYMVwxWJ76Ey6ZyaEB+S+Euk5Wwvod70qZD2k3OfuneWCJsMvcOCSkIxG6WsDpiy6CpP91TCrM+HsUuywVRhVomcgHmjVNUDH0sg9znGMKLpFhQjXozbwelPNvM0e7E137nFB15CjGrz8h3UZSIgDdkCD244mOdZ75tc8BZLy8kQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629526875; bh=ckBt2xxOY4e22vi3GfPog0GhHP+cO3ST1q8MLwXLEcw=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=CsHG30FLwXmomERxbe043OaKMWs/BcT2z94ITXiwg9FlTQ2aLWYOHgph2qkhgpxnu54CoHHu803jN7UlBtc0GFMUcaHNQss+GFl7T6SseqC4I4afxTNDQegFZfA0rfH8C7KL0qa4YR3tYku+hgsORspRnaDqr9RAoj5TstyVBbOMgMtIJkuTF2l9y8xh1UC4sY1eqQLgnRB+mKTQx3ASyW/t871sppe1jMr5D7ndxX5KLGogacmszVF6kMKKtRhPwuxwTQj20X2pa2sk2Wi07TF5rP8c+pUMsHRVuOk/5ODF6CnERBwRXUo33nwmkD9RXGv1JwjnxkGggH+UoBKMxA== X-YMail-OSG: 8wwjix0VM1miD8sKp5DZgcMZvrPOBGr2WyhhRUhG139Srehx9cth9pZLzKZGJYE 6UhiFRgWPlNyFcHUOiKmjAUWS4wL.LtddMrIR2M1ff7uif5P0jqMX_7SVxe_cSnsQOAbXlJ5duUT Krp6WgwCzKLuIWPbu7bg_.Sq3LHU1TIzjtAhwA5TvqOkDxMXk14WkVp3q2TCxssBJ2FlyS_VNikG YKhgB0.VxHyuZypxSbs1aA_KfD1SPKPYMVmlNTGJTDI7wn.aZWBN1JNGeC7hyfUexM2xUug5OJKD AI5awsIdwmGL.fKiLsufRN8J4amI58Ec19HOPsMCI2KIZaBSfTD1A3ZGb2qF9gglucS.Rt8yr017 91CqMEcOZilG2cZVxdRl9Vmio3341RGFvkNAzX_32sTB0QJfxhqLPwPfStJPzkYfKoXE4se_SDyS eFkThyjh9ToN53Va0IRNZkuOFPc_znCOoStSuHIna3AL0IxQPWLcMedOGkjPljX64orNsigzw8hu 4LKZnA9xPSG_KVElw12d4..qNvCDJGnwhDYWhxXFomK2qxr.b15STnDTAXDePtiOyejv0S165Cs_ 6uU8DerPFB2y9wnTIeMZykG7iAN06cs9uYX9YqcONZHvQMIaqRi6xbU_PW24ANpVX1tsA2QZVasu XLDpbPJTAdK_sG7GbXO6Rauc30h1ZcvrQ6QzGE4UUDZM7lLbs96aSc8efFsu_7OHu1nC1QnbaVeF wj7Htf3Nr8c3GmSFfr4166._snQhCMywdWyO_hBiRBPp3Tl_Pq82T2XSPZOqUaUNeHbZiVSQxFYE gSR_3xSUHjhtK1RQpSn4Vg6qDd76Mk63MQDOuVhtO7 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Sat, 21 Aug 2021 06:21:15 +0000 Original-Received: by kubenode518.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID bb8449bc31f9f97ca8fe02b324ff75d8; Sat, 21 Aug 2021 06:21:11 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83v940ylxu.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.125; envelope-from=spacibba@aol.com; helo=sonic314-15.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=unavailable 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:272760 Archived-At: On Fri, Aug 20, 2021 at 10:07:25PM +0300, Eli Zaretskii wrote: >> Date: Fri, 20 Aug 2021 20:08:05 +0200 >> From: Ergus >> Cc: juri@linkov.net, emacs-devel@gnu.org >> >> >> C-h k and press mouse-1 >> > >> >With what toolkit? or was this on a TTY frame? >> >> xterm, All the issues are with xterm. gui works fine for me. > >Then I don't understand the issue you are describing. I get the same >response on GUI frames as you report for xterm, and I think the reason >is clear: there's no binding for C-mouse-1, so Emacs shows only the >(existing) binding for C-down-mouse-1. I will try to explain myself: 1) In a gui clicking (fast) mouse-X produces 2 events + and emacs translates them to + -> when they are fast enough. 2) In a gui, holding mouse-X produces 1 event and after a small delay emacs processes the event, so releasing the button after that delay is seen as an independent event . In this case there are two events and they are not merged as in 1. 3) In xterm, clicking (fast) mouse-X produces 2 events as well + but emacs does not translate them; that means that is processed (shows the menu) and then is also processes (hides the menu and selects). 4) In xterm, holding mouse-X and the releasing after a while is exactly the same as 3). So as I said before, in xterm emacs does not use such a delay on tui, it needs to be added or somehow provide a criteria to translate + into when it is done fast enough.