Function: diary-icalendar-parse-transparency

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

Signature

(diary-icalendar-parse-transparency TYPE)

Documentation

Return the iCalendar time transparency of an entry.

TYPE should be the type symbol for the component to be exported, as returned by diary-icalendar-parse-entry-type. If the entry is non-marking (i.e., begins with diary-nonmarking-symbol), and it is to be exported as an icalendar-vevent (according to TYPE), then this function returns a list containing the appropriate icalendar-transp property node to mark the event as transparent, and moves the current restriction past the non-marking symbol. Otherwise it returns nil.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/diary-icalendar.el.gz
(defun di:parse-transparency (type)
  "Return the iCalendar time transparency of an entry.

TYPE should be the type symbol for the component to be exported, as
returned by `diary-icalendar-parse-entry-type'.  If the entry is
non-marking (i.e., begins with `diary-nonmarking-symbol'), and it is to
be exported as an `icalendar-vevent' (according to TYPE), then this
function returns a list containing the appropriate `icalendar-transp'
property node to mark the event as transparent, and moves the current
restriction past the non-marking symbol.  Otherwise it returns nil."
  (save-excursion
    (goto-char (point-min))
    (when (and (eq type 'ical:vevent)
               (re-search-forward (concat "^" diary-nonmarking-symbol)
                                  (line-end-position) t))
      (narrow-to-region (point) (point-max))
      (list
       (ical:make-property ical:transp "TRANSPARENT")))))