From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: RFC: defcustom display-popup-menus for display-popup-menus-p Date: Wed, 21 Dec 2016 15:43:53 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87r351hv1y.fsf@lifelogs.com> References: <87y3z9hxs1.fsf@lifelogs.com> <83r35110yv.fsf@gnu.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1482353092 914 195.159.176.226 (21 Dec 2016 20:44:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 21 Dec 2016 20:44:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 21 21:44:47 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 1cJnki-0007h8-BW for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 21:44:44 +0100 Original-Received: from localhost ([::1]:58922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJnkm-0002UG-Nb for ged-emacs-devel@m.gmane.org; Wed, 21 Dec 2016 15:44:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJnkD-0002UA-QK for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:44:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJnkA-0004Pd-OS for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:44:13 -0500 Original-Received: from [195.159.176.226] (port=47360 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJnkA-0004PE-HH for emacs-devel@gnu.org; Wed, 21 Dec 2016 15:44:10 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cJnjz-0002BG-Ow for emacs-devel@gnu.org; Wed, 21 Dec 2016 21:43:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 37 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:DLfdufvveZZpdgMrxjMnKJogIvA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 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:210717 Archived-At: On Wed, 21 Dec 2016 22:28:08 +0200 Eli Zaretskii wrote: >> I propose a new boolean defcustom `display-popup-menus' so users can >> disable graphical popups. EZ> display-popup-menus-p is supposed to be a capability-reporting EZ> function, like display-graphic-p. It shouldn't be customizable. What EZ> should be customizable are the Lisp programs which ask questions via EZ> popup menus. The function you mention, read-multiple-choice, already EZ> allows that via the existing variable use-dialog-box. Hrm, I missed that in the code. Sorry. I think `use-dialog-box' should be mentioned in the function docstring for `read-multiple-choice' maybe? So other people catch it? EZ> Btw, the dialog/menu should only pop up if the command itself was EZ> invoked via a mouse. Since you say you don't want to click the mouse, EZ> I wonder how come you got that popup menu in the first place. Gnus, when reading an article with HTML images, throws a NSM graphical popup about trusting the image origin. But Gnus will otherwise show the NSM text prompt. So it must be something at the HTML interaction with EWW that breaks the dialog detection logic. For example this article did it: news.gmane.org gwene.com.feedburner.webupd8:2034 (My personal opinion is that using the mouse should not influence the UI flow, so I've disabled `use-dialog-box' for myself. I think in general graphical dialogs are a problem with Emacs. They jump out of the frame, steal focus, carry very little useful information, and are not natively part of the Emacs interface. I'd much rather see the Emacs frame get blanked by an in-frame dialog box implemented with native widgets but in an Emacs context.) Ted