From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: JD Smith Newsgroups: gmane.emacs.devel Subject: Re: Popup-menu signals quit when Aborted Date: Sat, 1 Feb 2020 16:58:53 -0500 Message-ID: References: <97CB42CE-5971-4EA5-B96C-6FA7620DDB74@gmail.com> <83r1zei78j.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) 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="102112"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 01 22:59:55 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 1iy0ny-000QRs-Bh for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 22:59:54 +0100 Original-Received: from localhost ([::1]:51034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy0nx-0001cl-E8 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 16:59:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34630) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iy0n5-0000k0-9v for emacs-devel@gnu.org; Sat, 01 Feb 2020 16:59:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iy0n4-0000YV-CR for emacs-devel@gnu.org; Sat, 01 Feb 2020 16:58:59 -0500 Original-Received: from mail-yw1-xc35.google.com ([2607:f8b0:4864:20::c35]:35119) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iy0n2-0000Vr-7p; Sat, 01 Feb 2020 16:58:56 -0500 Original-Received: by mail-yw1-xc35.google.com with SMTP id i190so9172312ywc.2; Sat, 01 Feb 2020 13:58:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7m53lhQMo3uSbv8GoqFHiTkSx4JbBKyUgbK6oow/I14=; b=McxrunXn8bi1d97fpNl2Z/qZTdcZ8kuqLncJm0rgeEtraYH2/vjON3Bg/gWecu1bQB 0NoNk1tacgpfESQm0QW16D6YkNHlmSj5Aaw1WdTFv0qvmC0dlcgz/rAHsq/5bZQEzCoT YWRDeV473zyWZcHIalThwpp56N4Cl1vLXjIbqskvGb3xpZoX4VMFnqgTVV03PJC6KiEv C4Jd8E7ZB+EjmQrL/559nLwLfwDSZ3LNAz36vlJe5USPvWYRzG8xPC4QX5Zbq0jKVU3N /dDolZ3HKOs6FwRQbn+ecl6pPhyxMHuXY34wVGRtSy3VVsqcPPzueR/2PgxX23vyAQ5A NMrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7m53lhQMo3uSbv8GoqFHiTkSx4JbBKyUgbK6oow/I14=; b=jEvgopC6b1cSiUhwMibucA3eMsi53cZvsgk0Qv5kS2v/ooY3HDFSYRzMY52JIDnl8J EzZfxRDpgXrUdM1W+j1GH1nEVf8rt71nce9f1K70IFFcyhgWdxzXUxi3QfZBnoKFPMZi wxkcJJwQ/ehnhNZZa3ZuX4HJpxEcyuiZ4OvkDJ09zUOyFl4Ae5TO+oY5lN4V5gi8B6VV z6ImMS5+6iv89+5lTz2p4xDLGaWk8vUs33Q92Rj8XnTmXFJMIXk6cHoP21S4GDJcRkf3 OzeIjCFIFXojNeIpWprLa/AKsqo8mz3EBktvxNu2g5u7/STNttaer64Klhdy+bNROgFb TRKA== X-Gm-Message-State: APjAAAWNd0vP9liWgZalnBCGwDCs3VhMv2t6UHTAcwjEJgBNg+NTsgE2 5mbSylJy1gPxSbJnkut3dzk+uHsTe+o= X-Google-Smtp-Source: APXvYqywaTEKK7PoNYCTagGsJX55yd9ov3dfu/99Z7RRDg/Qy+xO5TM2hx2h76mLdbC5/r/ooZzb5A== X-Received: by 2002:a25:5b8b:: with SMTP id p133mr14731841ybb.175.1580594335315; Sat, 01 Feb 2020 13:58:55 -0800 (PST) Original-Received: from [192.168.0.101] (cblmdm134-228-15-233.buckeyecom.net. [134.228.15.233]) by smtp.gmail.com with ESMTPSA id h193sm6074648ywc.88.2020.02.01.13.58.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Feb 2020 13:58:54 -0800 (PST) In-Reply-To: <83r1zei78j.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::c35 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:244817 Archived-At: Not my code, just investigating a possible bug on request of its author. = =20 > On Feb 1, 2020, at 11:48 AM, Eli Zaretskii wrote: >=20 >> From: JD Smith >> Date: Sat, 1 Feb 2020 11:41:40 -0500 >>=20 >> 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? >>=20 >> It seems sensible to me that if a mouse-event generates a popup menu, = and it is =E2=80=9Cgotten rid of=E2=80=9D 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 =E2=80=9Cnormalizing=E2=80=9D = positions. =20 >>=20 >> 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 =E2=80=98quit 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: >=20 > Any reason why you didn't use x-popup-menu?