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: Thu, 19 Aug 2021 16:11:23 +0200 Message-ID: <20210819141123.j44oljyix3pjvthz@Ergus> References: <20210818120834.i3orh535tb2enpos.ref@Ergus> <20210818120834.i3orh535tb2enpos@Ergus> <87r1epzznt.fsf@mail.linkov.net> <83zgtd2762.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="23224"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 19 16:12:50 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 1mGimn-0005k5-Ig for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 16:12:50 +0200 Original-Received: from localhost ([::1]:43256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGimm-0005uQ-F2 for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Aug 2021 10:12:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGilu-0004Sv-Rk for emacs-devel@gnu.org; Thu, 19 Aug 2021 10:11:55 -0400 Original-Received: from sonic302-2.consmr.mail.bf2.yahoo.com ([74.6.135.41]:46646) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGilq-0006tk-EH for emacs-devel@gnu.org; Thu, 19 Aug 2021 10:11:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629382308; bh=vjBmDLNydmeQsbuflqG7QxqQcqx0JVamTrOeuzobo/k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=XTjnDNvknqBl6T7V4LqT0O03gI151G8m9r2ypBgiGiPLkVOA1UG/xuQDzjF7dKY+A8GDOswNISkoccwxaCl37q86VCJHu4NlzR3Uw8Wr96BRcu4nW3PhjCoF0IvA/43mmH5Rk8fb6cCldAh3Tv9q0ROAvlWsXarN1v7FNd/QXVr3Amhh0Utsjl9HWRZXhmxAADD2Yh+VQPZRV+yCN6/cASbARvqsGeYH76nF0UUrkXgkuY4A5LIJnAvAeh3TNnnf7olQHsIHy7AuJ3JOl+mm+LBoqSwG8sBF8AoFJVrRx6p0DkMX15j3odaBh9nyJcmtYbInMN9fhnNT2RmTXlbYfw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629382308; bh=SHmp5WsS7jL054qYwXZyd6qHz5QOXcT43mILku48qqr=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=tEfYqX1nzTo5vn2gYmllZ7d4TfpdHr7KXpzPX4yG1f8AXbCJ+xDcYodI1fzGRUqhf+o6mNF6R9VTMHdTxK6RLPYUSCcb1HGyxlPu9hpw/63gLNy11SyCEnhJSc+ELyuQkgqMY5LnrVBCK5b5nhafC+WSHGkFv2+8Zsjlh0SVg3+6nJsmn2023AjaM+OYoX9lG9ojZ7TdQ6f8gxFXJKq/RQ8NaC6jGJRuVichpQEDOMHl/HfE4JHBo/9OpBVjeDdf7jPIqj/HqSHcaTh0HrXRRGz/whAA+nXfY8nR8yc4WKa8W5M2Tm3HXZqNsTZ7zLIaCddq4d27iHjZsHcMQdTROg== X-YMail-OSG: KPUHi6sVM1kIZ0iJgsP2tRnMgAcX8zeHPt5LmlfyNXrpW.7jy2Wl5GU6WTzvDOB e2bjkshH.s0Zkd.Mr50ZR_g94F1flMzZyoy_PoctYN32qYN9ejSw819Pr_1v86yy43ct99zvmgSM z5p7j.3Yq2YpwQ0zbc0N6_WWdaMlFXeayJkEF81ZWwDbpuNYi1ae.B1Yk0W4i1OCON2fOSB8_EKb WhNOLXfVC4CYHaubMJmSEP7HedHPFjlOi5ZYTfSbBj8PkfV2f2WG0QZQWScvpTOwl2URSlCH1EtB g8KLAHH3c73UlInVjsIrvVEEKrvP9bygiZl8A2dJbtD583WxkwTK9R.rhrdlI5IL95dtJABiwhhA .GWDse5TUNtEaal1HVkuiYErt2APxzOReLLpiUoLsFAU0eqsVr_wjeYwDghj7_SG6ChfRQDRcg_q a8.WyjhDim6hXE1d0K5pd9w.lR7IE9T.ezHH2vdO4xo_iZK8BU8eCcelsO_nsdKfXAfPTLjmG.lX bNf.3aNOCrWLVucmm90TmZaA2fiy3Xa6eBe8shNfD1t29bjxR6i0bnJyM0v2Bq.63UY7B1LiOA_P HEO9eTA4oA808glyFte911GMu9lvTxwYjbYjf5dNh5CXkxoQJQfKkytR89fyGjfJmdkqBDfCmbVD XEIio4GgAHVL9DMdJqqqOv7wO0xnLhx4gwd6q1ah7aSauL9NmeVxUTmp28RJOpWMOjeTtOr8ksSD B0Sj7eEwGUxPydJ2jgpTWtHhCfh7aXgkKmDFWT62wPwXdEWzyEPlMXUOsRlc5QedsjUIH5QtC5bC XZtHjGhRh9eKNORXRhp6r_yjNAyacIZW9X5iayHZUX X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Thu, 19 Aug 2021 14:11:48 +0000 Original-Received: by kubenode532.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d5d5f8c6c786fc87c5ee8bb53c866734; Thu, 19 Aug 2021 14:11:45 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83zgtd2762.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.41; envelope-from=spacibba@aol.com; helo=sonic302-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=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:272669 Archived-At: On Thu, Aug 19, 2021 at 11:03:01AM +0300, Eli Zaretskii wrote: >> From: Juri Linkov >> Date: Thu, 19 Aug 2021 10:01:10 +0300 >> Cc: emacs-devel@gnu.org >> >> What would a good key to bind such command? Maybe 'S-'? > >Probably. Or C-M-. > Hi Eli: There is the [menu] button. It is unused at least in xterm because it is not bound properly (I sent a message on yesterday). By default [menu] is bound to the same than M-x, so it is a good trade of to rebind it in the context-menu map, so by default the current behavior is not affected. But also, because it will provide the same behavior than other user interfaces around. In other terminals (urxvt) such button sends S-, that is not bound to anything either. And some others (gnome-terminal) intercept the binding before reaching emacs... so, I think is a good trade off with minimal impact. >> But please note that currently when you select a menu item >> using the keyboard, many commands will fail with >> >> (error "Command must be bound to an event with parameters") > >Those commands should ideally be fixed to not signal such errors, >because that's not good UI on TTY frames. Commands that cannot be >fixed shouldn't appear in the context menus popped on TTY frames to >begin with.