Function: wallpaper-setter-predicate
wallpaper-setter-predicate is a byte-compiled function defined in
wallpaper.el.gz.
Signature
(wallpaper-setter-predicate wallpaper-setter-predicate X)
Documentation
Access slot "predicate" of wallpaper-setter struct X.
Source Code
;; Defined in /usr/src/emacs/lisp/image/wallpaper.el.gz
;;; Finding the wallpaper command
(cl-defstruct (wallpaper-setter
;; Get rid of the default constructor (`make-wallpaper-cmd').
(:constructor nil)
(:constructor
wallpaper-setter-create
( name command args-raw
&rest rest-plist
&aux
(args (if (or (listp args-raw) (symbolp args-raw))
args-raw
(string-split args-raw)))
(predicate (plist-get rest-plist :predicate))
(init-action (plist-get rest-plist :init-action))
(detach (plist-get rest-plist :detach))))
(:copier wallpaper-setter-copy))
"Structure containing a method to set the wallpaper.
NAME is a description of the setter (e.g. the name of the Desktop
Environment).
COMMAND is the executable to run to set the wallpaper.
ARGS is the default list of command line arguments for COMMAND.
PREDICATE is a function that will be called without any arguments
and should return non-nil if this setter should be used.
INIT-ACTION is a function that will be called without any
arguments before trying to set the wallpaper.
DETACH, if non-nil, means that the wallpaper process should
continue running even after exiting Emacs."
name
command
args
(predicate #'always)
init-action
detach)