From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Popup-menu signals quit when Aborted Date: Sat, 01 Feb 2020 18:48:28 +0200 Message-ID: <83r1zei78j.fsf@gnu.org> References: <97CB42CE-5971-4EA5-B96C-6FA7620DDB74@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="40108"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: JD Smith Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 01 17:49:45 2020 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 1ixvxn-000AIu-IN for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 17:49:43 +0100 Original-Received: from localhost ([::1]:47764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixvxm-0003Ir-LE for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 11:49:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39778) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixvxD-0002kt-BP for emacs-devel@gnu.org; Sat, 01 Feb 2020 11:49:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ixvxD-0005mf-8G; Sat, 01 Feb 2020 11:49:07 -0500 Original-Received: from [176.228.60.248] (port=3564 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ixvxA-0004z7-Dz; Sat, 01 Feb 2020 11:49:06 -0500 In-reply-to: (message from JD Smith on Sat, 1 Feb 2020 11:41:40 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:244815 Archived-At: > From: JD Smith > Date: Sat, 1 Feb 2020 11:41:40 -0500 > > I'm glad you find it so, because I can't figure out the underlying logic > of this oddity. Can you explain why you think it's sensible? > > It seems sensible to me that if a mouse-event generates a popup menu, and it is “gotten rid of” by the user by > clicking off the menu, that this should NOT signal a quit and ring the bell as if some kind of error has > occurred. This is what `x-popup-menu` appears to implement, but its higher-level interface `popup-menu` > inhibits this sensible feature by “normalizing” positions. > > I encountered this using minions mode. Its popup menu for minor modes is very useful, but sometimes you > just want to take a quick look at what modes are set, and not alter anything. But clicking off the menu to get rid > of it signals ‘quit and rings the bell. Reading the note above in `x-popup-menu` I considered passing a mouse > event would be a reliable fix. But since `popup-menu` strips event information, the only remaining possibility is > to trap the quit: Any reason why you didn't use x-popup-menu?