From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: RFC: defcustom display-popup-menus for display-popup-menus-p Date: Wed, 21 Dec 2016 22:28:08 +0200 Message-ID: <83r35110yv.fsf@gnu.org> References: <87y3z9hxs1.fsf@lifelogs.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1482352152 30365 195.159.176.226 (21 Dec 2016 20:29:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2016 20:29:12 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 21:29:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJnVX-0006t3-Ji for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 21:29:03 +0100 Original-Received: from localhost ([::1]:58863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJnVc-0007jM-1M for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 15:29:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJnVS-0007i9-DF for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:28:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJnVP-0006BJ-Bc for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:28:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJnVP-0006BC-8w for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:28:55 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4676 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cJnVM-0003eO-H6 for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:28:55 -0500 In-reply-to: <87y3z9hxs1.fsf@lifelogs.com> (message from Ted Zlatanov on Wed, 21 Dec 2016 14:45:02 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210714 Archived-At: > From: Ted Zlatanov > Date: Wed, 21 Dec 2016 14:45:02 -0500 > > Currently the function `display-popup-menus-p' doesn't have any > user-customizable behavior as far as I can tell, and it's used by > `read-multiple-choice' for instance. > > This creates annoying dialogs that require a mouse to click. > > I propose a new boolean defcustom `display-popup-menus' so users can > disable graphical popups. display-popup-menus-p is supposed to be a capability-reporting function, like display-graphic-p. It shouldn't be customizable. What should be customizable are the Lisp programs which ask questions via popup menus. The function you mention, read-multiple-choice, already allows that via the existing variable use-dialog-box. Btw, the dialog/menu should only pop up if the command itself was invoked via a mouse. Since you say you don't want to click the mouse, I wonder how come you got that popup menu in the first place.