character. This is not possible when using `read-key', but using
`read-key' may be less 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 promp the user via GUI dialog box."
(and last-input-event ; not during startup
(or (listp last-nonmenu-event) ; invoked by a mouse event
- from--tty-menu-p) ; invoked via TTY menu
+ from--tty-menu-p) ; invoked via TTY menu
use-dialog-box))
(defun y-or-n-p (prompt)