Function: icalendar-parse-property-or-component

icalendar-parse-property-or-component is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-parse-property-or-component LIMIT)

Documentation

Parse a component or a property at point, up to LIMIT.

Point should be at the beginning of a line which begins a component or contains a property.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:parse-property-or-component (limit)
  "Parse a component or a property at point, up to LIMIT.
Point should be at the beginning of a line which begins a
component or contains a property."
  (cond ((looking-at-p (rx line-start "BEGIN:" ical:name line-end))
         (ical:parse-component limit))
        ((looking-at-p (rx line-start ical:name))
         (ical:parse-property (line-end-position)))
        (t (ical:signal-parse-error
            "Not at start of property or component"
            :restart-at ; find start of next content line:
            (save-excursion
              (if (re-search-forward (rx line-start ical:name) nil t)
                  (match-beginning 0)
                (point-max)))))))