[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 cb8d6ab648f: * lisp/subr.el (use-dialog-box-p): Fix conditions
From: |
Eli Zaretskii |
Subject: |
emacs-29 cb8d6ab648f: * lisp/subr.el (use-dialog-box-p): Fix conditions for GUI dialogs. |
Date: |
Sun, 2 Apr 2023 03:35:15 -0400 (EDT) |
branch: emacs-29
commit cb8d6ab648fa74f03b0ba1c5f33eb53e1e017f3a
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
* lisp/subr.el (use-dialog-box-p): Fix conditions for GUI dialogs.
---
lisp/subr.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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.")
(defun use-dialog-box-p ()
"Say whether the current command should prompt the user via a dialog box."
(and last-input-event ; not during startup
- (or (listp last-nonmenu-event) ; invoked by a mouse event
+ (or (and last-nonmenu-event ; nil is listp...
+ (listp last-nonmenu-event)) ; invoked by a mouse event
from--tty-menu-p) ; invoked via TTY menu
use-dialog-box))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 cb8d6ab648f: * lisp/subr.el (use-dialog-box-p): Fix conditions for GUI dialogs.,
Eli Zaretskii <=