From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Change to `use-dialog-box-p' Date: Sun, 21 May 2023 14:41:48 +0800 Message-ID: <875y8m1903.fsf@yahoo.com> 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> <834jo6s06u.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40362"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 21 08:42:54 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 1q0cmK-000AFk-1n for ged-emacs-devel@m.gmane-mx.org; Sun, 21 May 2023 08:42:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q0clY-0006fM-VS; Sun, 21 May 2023 02:42:04 -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 1q0clX-0006f9-1f for emacs-devel@gnu.org; Sun, 21 May 2023 02:42:03 -0400 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q0clV-0003nY-0N for emacs-devel@gnu.org; Sun, 21 May 2023 02:42:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684651319; bh=jYnEeG3CW3svvBXwA3dV1RHcTF3FS9Y9g6T64cLuwpk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=TpyllrP3VeBTtdf4Zo4e0tfgwB+dd6S9+GhjxWxlzrU1tq8TDHvLmTxUCVzaczTZlp52NzEUfNh3PgTAbR6l1BkFnEkY5XzEKSafxuBKnNsaJHpvPqcxNxC2+sLtb/YFsSgzIxquzUWFUJvVfUgj3BEBugPagDsa92L18CWizRTJ3wIbfv2l9z1cp+emkPq4qzFNIqZJv6E7MLAWndujXN/CzWF4mDAn+XO+V92M0uhTnkPw+h4s2p5vIFSawZUHk7cR9nbqtwfBDgUnRLotqHqb9SgT/rbM7qvqGXnrZbQB9b3rP77keXYEiuX3OJ7CHnBqA6WrKokkZuAs/qXNyw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684651319; bh=hHmwyT0f5gzTKF5rh/85ED4gDKzS4UrEVmfdCX9U8X9=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=gJYURXiG/1XwmQ8O+FRBm+PrAyViWDPQP7hdObU7kvY7QmkhoDqImi9nabzreK0a+DmzxOxKtrGUqad4EU1AyHSO05YC7LZfB6zKKR/Vit0Q/h1lrrQ4VbTrnQU720RvIdjMEUfB+Uhayt0MlZNYIkw6ZI7xyOy1KC/oFma0VTbPMPIxwdTkSOixMV1Dlo8qeetUJi/y/kFjHaFXCCDkmQhRbER+5kuGvzsOl1hvWrDfflza1mJuwcogAG1TfHoAmB0D5l6aDYbo1QYh5E61AUf++ZIwKJxE/KgqSBwp+Fd7X9LnyW68XHU6BqfatNYCTFAYtJoL1D2nCDQkbuzltA== X-YMail-OSG: ugpp.7QVM1nzDFuWNJgYtC3iJM4Eu1fYXs9Z8ij0sENtpu4m.WEBysmD3uaO7g7 vBQtO1cPuNp7AgCB6EZcno17W0hxyBw9SOvPrgFXrY6jDyuQ7ktVHd1vffXakQ6K6Fgonu5uEf4s yJ1rCmo2VLhXMMjZsHQKkExiq0.akVGvPb9UDr8nELzs5J4ho6hhGdiJ6yuKTI4IUCKoAUvd4_JT UR6wl0FRUAUNHjQSV7.Xe0VUiGvwK19bCsrBlIUihxQm4W2PFmJ_Z55PRN90Q4f9km7ex39CrhjA UchKh7WiRDQrNlwMKU2wNyYHfwtEWfzvXcvv92ADOZmkULltkOW6OrA9yuom_Wtz9HehixgciGTW v6mH1Bpur4Qm3dtFwm4.5Cehfo_ZLztH53PFulGRl5SSgKLDnLmtnH8.6Mu.B6.r7VxKEmMs1hUL kzsC5iFfWlLcHlwAOF3PIi0qO4QlB7UBO5461L.VUDAB8KyqPYJveFV2t1Po_QWZNFZ.vgeIz6Au ep_v_J9kO7eWWSV5gE0pCfZadNTBwCW3VNnKLO6iVzlCTov7_6GHJiT2HjAYXL4I2J4xNcAuBYux hF3exd2jw1E0krCYunqWxW83slvyDazvmWgoha3F_SRn.MGhH1rNE93dbKEiys3rrS4vOdN_RC5k sw1zgsAjfc9RUFClg3rr6NrHtPhjC5tz.maeo2R3E.J8tD0RpF9nJNkhfNMV65PgwursnJo7skqP xkpchZMG_0_IKHmpUYkSFWAsoO08Aw.o.5OJ_Lvr4IJkGAEil5YSs0DWLgNJe41y4Os4VGfmC98S jXB7Vw2V60fl3KczqLxLTnkzHFoUJ.d6zJfzTMvLFP X-Sonic-MF: X-Sonic-ID: 1779f75d-4963-471e-b074-992b9a078b23 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sun, 21 May 2023 06:41:59 +0000 Original-Received: by hermes--production-sg3-748897c457-cf5qg (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID df1a3c9445dffcf49eca408b0b10b0fc; Sun, 21 May 2023 06:41:52 +0000 (UTC) In-Reply-To: <834jo6s06u.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 21 May 2023 08:50:01 +0300") X-Mailer: WebService/1.1.21495 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.199; envelope-from=luangruo@yahoo.com; helo=sonic301-30.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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:306245 Archived-At: Eli Zaretskii writes: > 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. Right, but then, what could lead to a file selection dialog being displayed immediately after startup? > 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. How about ``if the function displaying the dialog is y-or-n-p?'' BTW, this is simply a specific case which happens to affect me; the change could also affect many other people. > 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. But then, why does yes-or-no-p say: If dialog boxes are supported, a dialog box will be used if `last-nonmenu-event' is nil, and `use-dialog-box' is non-nil. I would expect use-dialog-box-p to behave identically to yes-or-no-p. > Just get over it. I don't think that's the right attitude to take towards user visible changes in behavior. Thanks.