projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb2c440
)
* lisp/subr.el (use-dialog-box-p): Fix conditions for GUI dialogs.
author
Eli Zaretskii
<eliz@gnu.org>
Sun, 2 Apr 2023 07:34:43 +0000
(10:34 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sun, 2 Apr 2023 07:34:43 +0000
(10:34 +0300)
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index f82826e819c0abe14ab029462b17406600039e79..cf6500d32c7e16f09d6d0bfbdbf72ae0049682fb 100644
(file)
--- 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))