Function: use-dialog-box-p
use-dialog-box-p is a byte-compiled function defined in subr.el.gz.
Signature
(use-dialog-box-p)
Documentation
Return non-nil if the current command should prompt the user via a dialog box.
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun use-dialog-box-p ()
"Return non-nil if the current command should prompt the user via a dialog box."
(or use-dialog-box-override
(and last-input-event ; not during startup
(or (consp last-nonmenu-event) ; invoked by a mouse event
(and (null last-nonmenu-event)
(consp last-input-event))
(and (featurep 'android) ; Prefer dialog boxes on
; Android.
(not (android-detect-keyboard))) ; If no keyboard is
; connected.
from--tty-menu-p) ; invoked via TTY menu
use-dialog-box)))