diff options
| author | Eli Zaretskii | 2023-04-02 10:34:43 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-04-02 10:34:43 +0300 |
| commit | cb8d6ab648fa74f03b0ba1c5f33eb53e1e017f3a (patch) | |
| tree | 33d8c934e68f817ef74fb014cd46c89efcd073e5 | |
| parent | fb2c44092077cfffb80ba534b70d3b462093267d (diff) | |
| download | emacs-cb8d6ab648fa74f03b0ba1c5f33eb53e1e017f3a.tar.gz emacs-cb8d6ab648fa74f03b0ba1c5f33eb53e1e017f3a.zip | |
* lisp/subr.el (use-dialog-box-p): Fix conditions for GUI dialogs.
| -rw-r--r-- | lisp/subr.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index f82826e819c..cf6500d32c7 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -3540,7 +3540,8 @@ confusing to some users.") | |||
| 3540 | (defun use-dialog-box-p () | 3540 | (defun use-dialog-box-p () |
| 3541 | "Say whether the current command should prompt the user via a dialog box." | 3541 | "Say whether the current command should prompt the user via a dialog box." |
| 3542 | (and last-input-event ; not during startup | 3542 | (and last-input-event ; not during startup |
| 3543 | (or (listp last-nonmenu-event) ; invoked by a mouse event | 3543 | (or (and last-nonmenu-event ; nil is listp... |
| 3544 | (listp last-nonmenu-event)) ; invoked by a mouse event | ||
| 3544 | from--tty-menu-p) ; invoked via TTY menu | 3545 | from--tty-menu-p) ; invoked via TTY menu |
| 3545 | use-dialog-box)) | 3546 | use-dialog-box)) |
| 3546 | 3547 | ||