1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

; * lisp/subr.el (use-dialog-box-p): Fix last change.

This commit is contained in:
Eli Zaretskii 2023-04-02 11:42:43 +03:00
parent 3619663f98
commit 82d0b6c64e

View File

@ -3538,10 +3538,9 @@ confusing to some users.")
(defvar from--tty-menu-p nil
"Non-nil means the current command was invoked from a TTY menu.")
(defun use-dialog-box-p ()
"Say whether the current command should prompt the user via a dialog box."
"Return non-nil if the current command should prompt the user via a dialog box."
(and last-input-event ; not during startup
(or (and last-nonmenu-event ; nil is listp...
(listp last-nonmenu-event)) ; invoked by a mouse event
(or (consp last-nonmenu-event) ; invoked by a mouse event
from--tty-menu-p) ; invoked via TTY menu
use-dialog-box))