Function: icalendar-with-param-of

icalendar-with-param-of is a macro defined in icalendar-macs.el.gz.

Signature

(icalendar-with-param-of NODE TYPE &rest BODY)

Documentation

Like icalendar-with-param, but for properties containing that param.

Find the first parameter node of TYPE in NODE and execute BODY.

Within BODY, the symbols value-node, value-type, and value will be bound to the parameter's value node, type and value as in icalendar-with-node-value. If BODY is nil, it is assumed to be the symbol value; thus
  (icalendar-with-param-of some-property some-type)
is equivalent to
  (icalendar-with-param-of some-property some-type nil value)

Other relevant functions are documented in the icalendar group.

Shortdoc

;; icalendar
(icalendar-with-param-of organizer-node 'icalendar-cnparam
    (upcase value))
    e.g. => "BENDER B. RODRIGUEZ"

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-macs.el.gz
(defmacro ical:with-param-of (node type &rest body)
  "Like `icalendar-with-param', but for properties containing that param.

Find the first parameter node of TYPE in NODE and execute BODY.

Within BODY, the symbols `value-node', `value-type', and `value' will be
bound to the parameter's value node, type and value as in
`icalendar-with-node-value'.  If BODY is nil, it is assumed to be the
symbol `value'; thus
  (icalendar-with-param-of some-property some-type)
is equivalent to
  (icalendar-with-param-of some-property some-type nil value)"
  (declare (debug (form form &rest form))
           (indent 2))
  `(ical:with-child-of ,node ,type nil ,@body))