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: New Context Menu Date: Wed, 18 Aug 2021 14:08:34 +0200 Message-ID: <20210818120834.i3orh535tb2enpos@Ergus> References: <20210818120834.i3orh535tb2enpos.ref@Ergus> 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="758"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 18 14:09:56 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 1mGKOI-000AR7-S6 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 14:09:54 +0200 Original-Received: from localhost ([::1]:38314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGKOH-0006Oa-BT for ged-emacs-devel@m.gmane-mx.org; Wed, 18 Aug 2021 08:09:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGKNU-0004yS-1v for emacs-devel@gnu.org; Wed, 18 Aug 2021 08:09:04 -0400 Original-Received: from sonic301-2.consmr.mail.bf2.yahoo.com ([74.6.129.41]:38305) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGKNR-00022x-HH for emacs-devel@gnu.org; Wed, 18 Aug 2021 08:09:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629288538; bh=baMNTjrx8rREtQ5yCPP9bfNgobw1lq5jz569G0Jf/vE=; h=Date:From:To:Cc:Subject:References:From:Subject:Reply-To; b=uKtJJ+7klLNFE8CWPAXOWl+nMUK43vUUcxx8DyIfQmeiBBZtayKJvTasUfCFZXmlt4YiTgPdtjWy+PFDqiaZpWXEJBunidKaYXTRNMh7REt64sL56ltDqbexsmjSEunoXv74yr087aDJtoNpIiVdB0VsBzvkQ3kKdxGwmlwyxsKy8WHJDEzGq+FCKv8PEk4u4/u+F28ms2SFNHA+iB59ftKyL5EPhjh1wYqFl0snKqY3ClhSkO0h9ekS+w5Un2tRWAQpScUIR7RfzCOBahUkx4SGruT/OwKsqhlCClxINNeYSdquNMabIvu9ogoUeBr6LhpRCYY+PliLOWbT97pGvw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629288538; bh=MHBFyOvlH5155c89GZrmFvRsAK7ZWb4Wcf9RVIY8doF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Q4sO0lLhQgio8trRE2cI6LvKDdnoiRSbys+rDriVdjUp0aHMY262Ycw6z5kSj4p9PUESAsBtIjtIDQnvrcPo+VY3jUZK6g4V8x2PWOboEvMVRhmTSyG3CwW+RP7X+GVfhDdBCRTMhBBvDN/JtuVemHeJHNBkjqp+dJUjaUYpBRGZAri75nfu+YVC/jDFDakhaLPLnea1LoFDPb5T5S55DdBbzZY1ImTgMO8G4IHhu3VRFWCVDF4iaH/1pPPcIqZrS7C1WCB4dai/0ZnyNgzMu3UykrDRaO+N4uf5AP0+U8gO5Pph6k4pwNBGvszYJzB5ER2o/RO/nfWbbA+aWVvocg== X-YMail-OSG: mmT785IVM1mEJoAMxOSphQDph1uoW.m6Chf3EojhHtn2PNsEwqxGrlrNR5uOU_Q AZAG1g_aSfKz3iJNqdqC6AJpIHePx_t.Joi3t338TkMLGJInfMgskSkxKPM0lbSdRq37h2mBD9q5 VOerj9vSUizUHQ0Vx_ZBfSJX9brm4Biq2thfwrmyt.14QFJh5PMtGMU5TW3R7H2mHSDCoe4XCufn sTGRPNIWF.Crjlv1M.0dCuboDPEauQo3iF_VS_Ni6vT7H3M5nKF.cOZv3Sgux5aZeEmuZX4biehQ DA4EpeGf7GZ03oJkEU51L4lWZQ3olR8T9SDJb2Ias3bIfqYpvc.YtKN6VYDVazfnhMbWRuu1ttCg L1NrsNPNynhMr0gGpMc.5rcjR_SimvSfuRgjM6vFavOQnovwFSnfNzH0roAIJ.nM8Xe3FI4CNtYu L0qtXMfYLIWNn9mioz2jgcdvbCdBIH2VGTVs9_bbLo.mfYMR3Vhy2GnuDnEEN6UmVRCKybQ.2ghj lqJJYs.3HXeQO61ot..XXRe06sGGXq0BLhG9KxjX_7I6FwQ5hlFyOXY.O141jDitmYH81VBI.zfj 6rQ8DrlEpmD1Y0YtviH8E65syZiPtHw05GHEAlkE1R5xXi4fKeUmYIF5Tu3.mpNk4UGm0QBnz3Ue nVm_t3aQ9rd5.EWmlcQD6bbgPYD35pMufEUHafaYFfbJWAlK3zAx6SuAjW9lq9hGXP5yLgZNbsus FD2ShWoy8sBHgvsryQddr9ydYoZFZMn.NcpJfxs3eKFWD6S0N3_V51oBcG7moLgq1ueDIAJFSr6D JwYe51uDJK9UQeDcMUQ8hOW0i3tzMub9eS5lIAWx7u X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.bf2.yahoo.com with HTTP; Wed, 18 Aug 2021 12:08:58 +0000 Original-Received: by kubenode545.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8c14271f5516d7f1adb0842f13134020; Wed, 18 Aug 2021 12:08:55 +0000 (UTC) Content-Disposition: inline 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.129.41; envelope-from=spacibba@aol.com; helo=sonic301-2.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:272555 Archived-At: Hi: I just tested the new context menu... It is very nice!! thanks Juri!! I have a couple of small issues that maybe you could help to face. When using emacs on xterm the interaction with the menu is a bit uncomfortable (like in X11... I know we xterm users don't use the mouse too much, but if it is not too complex maybe it may worth to add it at least as an option). The current implementation follows the X11 menu interaction pattern: Hold mouse-3 to keep the menu active and release mouse-3 to select an entry. Could we add an option to avoid this and have the same interaction behavior than in gui please?: mouse-3 activates the menu, a click over an option selects it and a click outside the menu hides the menu I know this may be something external to emacs itself; maybe it is how xterm menu behaves, but probably there is a way to go around this without excessive complexity. Maybe this is ask for too much, but I am wondering that once the context menu will be released with emacs 28, then a lot of packages will try to implement such a functionality in a hacky way with advises/hooks and so on and they won't get properly maintained. The other "issue" is maybe more a question: In case the user wants to bind the context menu without using the mouse how can be done? Will the context-menu appear in the current cursor (point) or in the current mouse arrow position? I know the context menu without mouse is a bit pointless; but for new users it may be very useful to not feel lost when starting (like exiting vim ;p) Thanks in advance, Ergus.