[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change to `use-dialog-box-p'
From: |
Eli Zaretskii |
Subject: |
Re: Change to `use-dialog-box-p' |
Date: |
Sat, 20 May 2023 08:56:12 +0300 |
> From: Po Lu <luangruo@yahoo.com>
> Date: Sat, 20 May 2023 10:45:21 +0800
>
> After:
>
> 2023-04-02 Eli Zaretskii <eliz@gnu.org>
>
> * lisp/subr.el (use-dialog-box-p): Fix conditions for GUI dialogs.
>
> dialog boxes will no longer be used when there is no last input event at
> all, i.e. when `last-nonmenu-event' is nil.
>
> Previously, `use-dialog-box-p' would only return nil if
> `last-nonmenu-event' was a key event, which is the correct behavior;
> `Fyes_or_no_p' still uses the correct test.
>
> Why was that change made?
Because last-nonmenu-event being nil happens in too many cases where
showing the GUI dialog is not TRT. Immediately after startup, for
example.
What is the situation where you need to show a GUI dialog even though
last-nonmenu-event is nil?
- Change to `use-dialog-box-p', Po Lu, 2023/05/19
- Re: Change to `use-dialog-box-p',
Eli Zaretskii <=
- Re: Change to `use-dialog-box-p', Po Lu, 2023/05/20
- Re: Change to `use-dialog-box-p', Eli Zaretskii, 2023/05/20
- Re: Change to `use-dialog-box-p', Po Lu, 2023/05/20
- Re: Change to `use-dialog-box-p', Eli Zaretskii, 2023/05/20
- Re: Change to `use-dialog-box-p', Po Lu, 2023/05/20
- Re: Change to `use-dialog-box-p', Eli Zaretskii, 2023/05/20
- Re: Change to `use-dialog-box-p', Po Lu, 2023/05/20
- Re: Change to `use-dialog-box-p', Eli Zaretskii, 2023/05/21
- Re: Change to `use-dialog-box-p', Po Lu, 2023/05/21
- Re: Change to `use-dialog-box-p', Eli Zaretskii, 2023/05/21