Function: diary-icalendar-parse-class

diary-icalendar-parse-class is a byte-compiled function defined in diary-icalendar.el.gz.

Signature

(diary-icalendar-parse-class)

Documentation

Parse icalendar-class node from entry.

Searches the entry in the current restriction for an access classification matching diary-icalendar-class-regexp. If a classification is found, it will be parsed as an icalendar-class node. Return this node, or nil.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz
(defun di:parse-class ()
  "Parse `icalendar-class' node from entry.

Searches the entry in the current restriction for an access
classification matching `diary-icalendar-class-regexp'.  If a
classification is found, it will be parsed as an `icalendar-class'
node.  Return this node, or nil."
  (goto-char (point-min))
  (when (and di:class-regexp
             (re-search-forward di:class-regexp nil t))
    (ical:make-property ical:class
        (upcase (string-trim (match-string 1))))))