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 21:01:32 +0300 Message-ID: <83y28wyozn.fsf@gnu.org> References: <20210818120834.i3orh535tb2enpos.ref@Ergus> <20210818120834.i3orh535tb2enpos@Ergus> <87r1epzznt.fsf@mail.linkov.net> <83zgtd2762.fsf@gnu.org> <87fsv4io41.fsf@mail.linkov.net> <838s0w1hiz.fsf@gnu.org> <871r6odq3s.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spacibba@aol.com, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 20 20:03:00 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 1mH8r6-00087i-76 for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 20:03:00 +0200 Original-Received: from localhost ([::1]:42978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH8r5-0003wn-4u for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Aug 2021 14:02:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mH8px-0002bR-OX for emacs-devel@gnu.org; Fri, 20 Aug 2021 14:01:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39670) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mH8pv-0008A6-5B; Fri, 20 Aug 2021 14:01:48 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4070 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 1mH8pu-0006pv-D1; Fri, 20 Aug 2021 14:01:46 -0400 In-Reply-To: <871r6odq3s.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 20 Aug 2021 19:49:03 +0300) 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:272737 Archived-At: > From: Juri Linkov > Cc: spacibba@aol.com, emacs-devel@gnu.org > Date: Fri, 20 Aug 2021 19:49:03 +0300 > > >> What would be the best strategy for fixing these commands? This error > >> is signaled for all commands that have (interactive "e"). Then such > >> interactive spec should be removed from all commands used in the menu? > > > > I guess so. Why does it make sense for commands invoked from the > > menus to have the "e" interactive spec? > > There are too many commands that have the "e" interactive spec. > It would be much simpler not to signal an error for them, but produce > a fake event where the clicked position is set to the position of point. Feel free to work on that (I guess that needs changes on the C level?).