The function selection-empty
returns nil
if there is a primary selection of the kind indicated by
format
, or t
if there is no such selection.
format controls what kind of object is checked. The following values of format are recognized:
The object is a string. This is the default value.
The object is of type image, converted from whatever format the platform supports.
The object is the Lisp value.
CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017