Function: display-popup-menus-p
display-popup-menus-p is a byte-compiled function defined in
frame.el.gz.
Signature
(display-popup-menus-p &optional DISPLAY)
Documentation
Return non-nil if popup menus are supported on DISPLAY.
DISPLAY can be a display name, a frame, or nil (meaning the selected frame's display). Support for popup menus requires that a suitable pointing device be available.
Probably introduced at or before Emacs version 21.1.
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun display-popup-menus-p (&optional display)
"Return non-nil if popup menus are supported on DISPLAY.
DISPLAY can be a display name, a frame, or nil (meaning the selected
frame's display).
Support for popup menus requires that a suitable pointing device
be available."
;; Android menus work fine with touch screens as well, and one must
;; be present.
(or (eq (framep-on-display display) 'android)
(display-mouse-p display)))