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."
  (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))
           from--tty-menu-p)            ; invoked via TTY menu
       use-dialog-box))