Function: icalendar--make-property--nonlist
icalendar--make-property--nonlist is a byte-compiled function defined
in icalendar-ast.el.gz.
Signature
(icalendar--make-property--nonlist TYPE VALUE-TYPES RAW-VALUE &optional PARAMS)
Documentation
Make a property node of TYPE with value RAW-VALUE.
VALUE-TYPES should be a list of value types that TYPE accepts. PARAMS, if given, should be a list of parameter nodes.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-ast.el.gz
(defun ical:-make-property--nonlist (type value-types raw-value &optional params)
"Make a property node of TYPE with value RAW-VALUE.
VALUE-TYPES should be a list of value types that TYPE accepts.
PARAMS, if given, should be a list of parameter nodes."
(require 'icalendar-parser) ; for `ical:maybe-add-value-param'
(declare-function ical:maybe-add-value-param "icalendar-parser")
(let ((value (if (ical:ast-node-p raw-value)
raw-value
(ical:make-value-node-of value-types raw-value))))
(when value
(ical:ast-node-valid-p
(ical:maybe-add-value-param
(ical:make-ast-node type (list :value value) params))))))