From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Change to `use-dialog-box-p' Date: Sun, 21 May 2023 08:50:01 +0300 Message-ID: <834jo6s06u.fsf@gnu.org> References: <87o7mf3em6.fsf.ref@yahoo.com> <87o7mf3em6.fsf@yahoo.com> <83y1ljsg03.fsf@gnu.org> <87jzx33487.fsf@yahoo.com> <83wn13s9lp.fsf@gnu.org> <877ct32yjr.fsf@yahoo.com> <83r0rbs5ki.fsf@gnu.org> <87353r2qwm.fsf@yahoo.com> <83h6s7rxcz.fsf@gnu.org> <87pm6u1pex.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="722"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 21 07:50:35 2023 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 1q0bxi-000AVq-3g for ged-emacs-devel@m.gmane-mx.org; Sun, 21 May 2023 07:50:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0bx0-00060p-Kj; Sun, 21 May 2023 01:49:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0bwv-00060Z-CO for emacs-devel@gnu.org; Sun, 21 May 2023 01:49:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0bwv-0003pn-3O; Sun, 21 May 2023 01:49:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=57KOOTzrZkgxAoKMoKCf7pggtDyBxDv0qb8OJqkH77w=; b=a08wXB2GTn0s wv3ZELQXDc4mKA9snIl2DqUgmvws+2V9RhBQgh84LKT57OFjXfu0WpvSFzEZFoo++/b4ZITGgTGVt wW6GMDzU0MI8qbSnVXDpEkaDYjMSLldO1cL/tUMHUcejjCMSP6CZKX3ZdBAkyRRIvIslTTLUcwVHh GJke0bRb6hdPp61/XyXHTSP+kIN5Cb7UaZflbyqgJ19JlMGZAKc2N7nSC9yk1ubhrlAMVqwgKhbtU F1BhBTJAkiqkDdANOGdHvnk1YBLyTtFeEySUbxdRKS7SUWanF5I55HEVSPgsbyDH+glFuumGeSuiv JPhZtMHTu2kjQNu1MX2dIQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q0bwr-0001eA-HA; Sun, 21 May 2023 01:49:42 -0400 In-Reply-To: <87pm6u1pex.fsf@yahoo.com> (message from Po Lu on Sun, 21 May 2023 08:47:18 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306244 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Sun, 21 May 2023 08:47:18 +0800 > > Eli Zaretskii writes: > > > On what OS? > > X, with both Motif and no toolkit (where the XMenu library is used for > dialog boxes.) I guess that's only with a Yes/No dialog, and only if you press RET to accept the default response. But GUI dialogs can show much more than that, and this function is for all of them. It would be unthinkable for us to pop up a File Selection dialog, for example, when last-nonmenu-event is nil. > > Anyway, I see no reason to change the current behavior due to this > > scenario and similar ones. Emacs didn't see any mouse-related input, > > so it has no reason to prefer GUI dialogs. We will surprise and annoy > > users if we do. > > But the existing behavior has existed for a very long time, and its > removal is now surprising me, and probably others as well. I'd hate to > need to advise use-dialog-box-p... If you want to convince me to make some change, please describe how to distinguish between this particular case which is of interest to you and the other ones, when last-nonmenu-event is nil. And even then I still don't see why we should pop up a GUI dialog in this situation. Once again: Emacs defaults to not showing GUI dialogs, it's our long-time behavior, and this situation doesn't seem to have any aspects that would require us to show a dialog. It is simply a bug that we were showing a dialog in previous versions: the code didn't distinguish between nil and a proper list. Just get over it.