Function: icalendar-make-index

icalendar-make-index is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-make-index)

Documentation

Create an empty index of iCalendar components.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
;;; Caching and indexing parse trees
;;
;; The following functions provide a simple in-memory cache and index
;; for faster access to parsed iCalendar data by date, UID, and other
;; fields of interest.  The index and parse tree are stored in a
;; buffer-local variable of the parsed buffer and not recomputed if the
;; buffer hasn't changed.  Most users of the library should just call
;; `icalendar-parse-and-index' to get both the parse tree and a
;; reference to the index, and get objects of interest from them
;; with `icalendar-index-get'.
(defun ical:make-index ()
  "Create an empty index of iCalendar components."
  (list :bydate (make-hash-table :test #'equal) ;; date => list of components
        :byuid (make-hash-table :test #'equal)  ;; UID => component
        :bytzid (make-hash-table :test #'equal) ;; tzid => vtimezone
        :recurring (list))) ;; list of components