Function: icalendar-contains-vcalendar-p
icalendar-contains-vcalendar-p is a byte-compiled function defined in
icalendar-parser.el.gz.
Signature
(icalendar-contains-vcalendar-p &optional BUFFER)
Documentation
Determine whether BUFFER contains "BEGIN:VCALENDAR".
If so, then BUFFER is a candidate for parsing with, e.g.,
icalendar-parse-calendar. BUFFER defaults to the current
buffer. Returns the position where parsing should start, or nil.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:contains-vcalendar-p (&optional buffer)
"Determine whether BUFFER contains \"BEGIN:VCALENDAR\".
If so, then BUFFER is a candidate for parsing with, e.g.,
`icalendar-parse-calendar'. BUFFER defaults to the current
buffer. Returns the position where parsing should start, or nil."
(with-current-buffer (or buffer (current-buffer))
(save-excursion
(goto-char (point-min))
(when (re-search-forward "^BEGIN:VCALENDAR" nil t)
(beginning-of-line)
(point)))))