From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.devel Subject: dbus.el and use-dialog-box Date: Tue, 12 Jul 2016 21:09:08 +0200 Message-ID: <87y456ish7.fsf@fx.delysid.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468351781 1623 80.91.229.3 (12 Jul 2016 19:29:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 19:29:41 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 12 21:29:32 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bN3N6-00023c-1P for ged-emacs-devel@m.gmane.org; Tue, 12 Jul 2016 21:29:32 +0200 Original-Received: from localhost ([::1]:42910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN3N5-00030y-3l for ged-emacs-devel@m.gmane.org; Tue, 12 Jul 2016 15:29:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN33U-0004cf-1c for emacs-devel@gnu.org; Tue, 12 Jul 2016 15:09:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bN33P-0004LG-Qk for emacs-devel@gnu.org; Tue, 12 Jul 2016 15:09:14 -0400 Original-Received: from familiekainz.at ([91.121.101.210]:53691 helo=ks354034.kimsufi.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN33P-0004KC-Ka for emacs-devel@gnu.org; Tue, 12 Jul 2016 15:09:11 -0400 Original-Received: from fx (unknown [80.109.194.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ks354034.kimsufi.com (Postfix) with ESMTPSA id 2ED1ABF6FE for ; Tue, 12 Jul 2016 21:09:09 +0200 (CEST) Original-Received: from mlang by fx with local (Exim 4.87) (envelope-from ) id 1bN33M-0003j1-NG for emacs-devel@gnu.org; Tue, 12 Jul 2016 21:09:08 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.121.101.210 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:205585 Archived-At: Hi. It appears that `yes-or-no-p' when called from a D-Bus method handler honors `use-dialog-box'. In other words, when `use-dialog-box' is non-nil, `yes-or-no-p' uses a dialog to ask the question. The docstring of `use-dialog-box' only refers to mouse events: "Non-nil means mouse commands use dialog boxes to ask questions. This applies to `y-or-n-p' and `yes-or-no-p' questions asked by commands invoked by mouse clicks and mouse menu items." Is this expected behaviour, or should D-Bus events be excluded (from the check in Fyes_or_no_p?) --=20 CYa, =E2=A1=8D=E2=A0=81=E2=A0=97=E2=A0=8A=E2=A0=95