Function: icalendar--get-event-property

icalendar--get-event-property is a byte-compiled function defined in icalendar.el.gz.

This function is obsolete since 31.1; use icalendar-with-component instead.

Signature

(icalendar--get-event-property EVENT PROP)

Documentation

For the given EVENT return the value of the first occurrence of PROP.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar.el.gz
;; ======================================================================
;; helper functions for examining events
;; ======================================================================

;;(defsubst icalendar--get-all-event-properties (event)
;;  "Return the list of properties in this EVENT."
;;  (car (cddr event)))

(defun icalendar--get-event-property (event prop)
  "For the given EVENT return the value of the first occurrence of PROP."
  (declare (obsolete icalendar-with-component "31.1"))
  (catch 'found
    (let ((props (car (cddr event))) pp)
      (while props
        (setq pp (car props))
        (if (eq (car pp) prop)
            (throw 'found (car (cddr pp))))
        (setq props (cdr props))))
    nil))