From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Popup-menu signals quit when Aborted Date: Sat, 01 Feb 2020 10:55:32 -0500 Message-ID: References: <97CB42CE-5971-4EA5-B96C-6FA7620DDB74@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121643"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) 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 16:56:09 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 1ixv7w-000VWA-C4 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 16:56:08 +0100 Original-Received: from localhost ([::1]:47308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixv7v-0007Gj-F2 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 10:56:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53333) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixv7S-0006o4-5g for emacs-devel@gnu.org; Sat, 01 Feb 2020 10:55:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixv7Q-0003tu-O3 for emacs-devel@gnu.org; Sat, 01 Feb 2020 10:55:37 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56554) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixv7Q-0003ra-Hb for emacs-devel@gnu.org; Sat, 01 Feb 2020 10:55:36 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B6BEB10084C; Sat, 1 Feb 2020 10:55:35 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F41C010080B; Sat, 1 Feb 2020 10:55:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1580572533; bh=518ElKSoRh/e5j1CctR9lE7lhpehBc3FnPIBKgEmsyE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QNLHwTdiprc5LRvqPIRwjwLV7O0XCaPaalXNY8pTMrPCcwu0Ks4Vf4UZlQ60Dwn9e gYwl0iN1OOhV1EMxC7vdAb2I+s+FU/OZQy5/60GGkgIoiIE9xryDQsdh37XiWvkVW0 FvS0eKE4QMGLCokhxsLI5ORGPGzeycnj4gRCtu+X/T1k/WvqTYm5aVkEpp9XK/R2Ny Cs/JKBnZDW2VhOwAJqFTHMkbzFS1DSDMKK1Cmp9/c2ul/OcnkDOC+8zcXY4ggVzsOs +Ddjo8dSIw9TiroLwchL3kiLl5KWDsN0cFfvfhdVrbnysy/xnVW2HjplRBBXqWDf1a 1MvjURAc1IGPw== Original-Received: from pastel (unknown [216.154.34.88]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C318A120800; Sat, 1 Feb 2020 10:55:33 -0500 (EST) In-Reply-To: <97CB42CE-5971-4EA5-B96C-6FA7620DDB74@gmail.com> (JD Smith's message of "Sat, 1 Feb 2020 09:51:22 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:244811 Archived-At: > `x-popup-menu` is setup to handle mouse events specially when =E2=80=9Cab= orting=E2=80=9D the > menu by clicking off of it: > >> If the user gets rid of the menu without making a valid choice, for >> instance by clicking the mouse away from a valid choice or by typing >> keyboard input, then this normally results in a quit and >> =E2=80=98x-popup-menu=E2=80=99 does not return. But if POSITION is a mou= se button >> event (indicating that the user invoked the menu with the mouse) then >> no quit occurs and =E2=80=98x-popup-menu=E2=80=99 returns nil. I wasn't aware (or if I was, I forgot about it in the mean time) of this oddity. > This seems sensible. 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? Stefan