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: Mon, 22 May 2023 14:28:03 +0300 Message-ID: <83y1lgppvg.fsf@gnu.org> References: <85d5665b-c1be-b1fa-3a50-40cdc1261841@gmail.com> <87353ozpfm.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29100"; mail-complaints-to="usenet@ciao.gmane.io" Cc: paaguti@gmail.com, emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 22 13:28:23 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 1q13iB-0007L6-ET for ged-emacs-devel@m.gmane-mx.org; Mon, 22 May 2023 13:28:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q13hX-00078H-8U; Mon, 22 May 2023 07:27:43 -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 1q13hV-000789-VQ for emacs-devel@gnu.org; Mon, 22 May 2023 07:27:41 -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 1q13hV-0002hn-Lz; Mon, 22 May 2023 07:27:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=tHpuExelfbxy06rEQCdRmMvCBv0oG7XXB16kn16/wS0=; b=eOekB88PjQWmGo1MK8w3 BaxzZ5AbBgWzyZE252VHilwJ2CXxIaf/KZjbcg1IUDSwE2THL/mqHbtcBu81RFUnJVD+OjEYM1EFe AAcyKNc6gvZDxcQOsGfByaMKkYNUG5mjI4cmeMj+uacEaj+P8E7sEligVdrXZhSK6h4pgQvTu9OpU lPfRgVgRYEny7p57NvCaKWDLsPD8mnXFqAE6LX5647Aey5sDv3Cf6j+e9tQu5oh9JJ1Aton+ehdFv D1ftygU4WSlbkrLbnVQLaXnK2kMZMZPpflHtvHxiARuE/VOYZLkllv3kdyflQfyXaZTS1tLHWUYu9 VZlz+X8ViNg7mQ==; 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 1q13hV-0003nP-3i; Mon, 22 May 2023 07:27:41 -0400 In-Reply-To: <87353ozpfm.fsf@yahoo.com> (message from Po Lu on Mon, 22 May 2023 17:27:25 +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:306267 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org, eliz@gnu.org > Date: Mon, 22 May 2023 17:27:25 +0800 > > Pedro A. Aranda Gutiérrez writes: > > > Eli writes, > > > >> It's not a "behavior", it's a bug!  The behavior we will get with the > >> change you suggest will surprise (and annoy) many more users! > > But we've had this old behavior for decades without complaints. The situation you are talking about almost never happens, because last-nonmenu-event is almost never nil. So the lack of complaints does not surprise me. And you haven't answered my question: > Btw, use-dialog-box-p also looks at last-input-event, and only pops up > a dialog box if that is non-nil. In your scenario, is > last-input-event non-nil? If so, what is it, and where did it come > from? Please answer this, I think there's some factor here we need to understand. Right after startup, last-input-event should be nil.