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: Popup-menu signals quit when Aborted Date: Sat, 1 Feb 2020 09:51:22 -0500 Message-ID: <97CB42CE-5971-4EA5-B96C-6FA7620DDB74@gmail.com> 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="5249"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 01 15:52:00 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 1ixu7s-0001B2-7z for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 15:52:00 +0100 Original-Received: from localhost ([::1]:46888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixu7r-00087p-9N for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Feb 2020 09:51:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36381) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixu7J-0007gl-R2 for emacs-devel@gnu.org; Sat, 01 Feb 2020 09:51:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixu7I-0004lY-Sk for emacs-devel@gnu.org; Sat, 01 Feb 2020 09:51:25 -0500 Original-Received: from mail-yw1-xc42.google.com ([2607:f8b0:4864:20::c42]:45840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixu7I-0004lC-Oo for emacs-devel@gnu.org; Sat, 01 Feb 2020 09:51:24 -0500 Original-Received: by mail-yw1-xc42.google.com with SMTP id a125so7998011ywe.12 for ; Sat, 01 Feb 2020 06:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=fYkhH9tTyQQLWyzfYgcjtFD9VyZrMzDTvayslU4/tRU=; b=lnY7CzXOqOW5SJoc+ksPRqUiT0LCabpqXjhT6edn0eRE6+PwxuxgSkNnocQwgjzvot ldtzStGEMze/k0s7K9uohzPN62edlB4LOHwUI9sst9zaOkHdUyFtAzufKwg0BYSPE0hh CUEJibY1t6oeqW+RJyrkUMrfW+AgMJEoyWmTma+oI2OwJZrkwkMCtv/83YbTAxebhBHq 9cIso3L6CPJGJWUZGx0ogGjkmFZNo0WNIYpVPge1dG0ue14GTFKlQeCEonQ6zTjt7Edl 3JdZeR+PIyzBHeqRGq4kqZFpypnzWWLsXa4lPvjA6XVnlAV8Tbs49vYb7OK2MTkGzFk1 Mulg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=fYkhH9tTyQQLWyzfYgcjtFD9VyZrMzDTvayslU4/tRU=; b=c6REGJnoFInPinuCsO2Hvpmf7XYYKqpJlNSTOP7KCvmltfSCcu3PGQ10Nt95k8yXVD 6TgoJEIjLJ6EuAzkpCsG58G7hyeTyGDbN6J0/+f64R8fHLaKTpZLyevlyCHU61WPk15N Nt5Ikopf0L3ZKuuEVWPw7kn9De4rxQHNYAaYQ77ZtTh9Ek6vl2zfgb9IwDCkYc1TL0tP wj/63FIDZZCTMH+WNeTKNhAMAtq0VnNFSAmXE/8rEn+OwBkPBN2vnBfYgOE1FCRe+BDm Li+QFOL09EFFHVgfyTTudYyvIjqIxcOGv24PAvyIcDJeXqQWJxU/NrLlaiLzsSSVBwfW +6Pw== X-Gm-Message-State: APjAAAX2HB6XI17inq693PJmYLA5dRZlzFkRdkvQumEk6GxU5n4nQ7Hc jIFU+/LWT40fyuBVsws9qNBcu+xnOmQ= X-Google-Smtp-Source: APXvYqwhoGTG+FN2mr6Sfg7onsoeRGoUaIjdOqlOiR85nw3tU7i1Ua+9sXt9qkJgy6H09CnwA538uQ== X-Received: by 2002:a81:13d6:: with SMTP id 205mr10155666ywt.95.1580568683701; Sat, 01 Feb 2020 06:51:23 -0800 (PST) Original-Received: from [192.168.0.123] (cblmdm134-228-15-233.buckeyecom.net. [134.228.15.233]) by smtp.gmail.com with ESMTPSA id i17sm5704874ywg.66.2020.02.01.06.51.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Feb 2020 06:51:23 -0800 (PST) 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::c42 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:244808 Archived-At: `x-popup-menu` is setup to handle mouse events specially when = =E2=80=9Caborting=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 = mouse 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. This seems sensible. But `popup-menu` "normalizes" all incoming = positions using `popup-menu-normalize-position`, which strips any mouse = event designation in the position before passing it on. So there is no = way via `popup-menu` to "indicat[e] that the user invoked the menu with = the mouse=E2=80=9D. Hence it always quits and ring the bell when the = user =E2=80=9Cgets rid of the menu". Normalizing away mouse events in this manner seems like a bug in = `popup-menu` to me, since `x-popup-menu` explicitly takes mouse events = and behaves differently with them. See https://github.com/tarsius/minions/issues/25 for original = discussion.=