Function: diary-icalendar-parse-location

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

Signature

(diary-icalendar-parse-location)

Documentation

Parse icalendar-location node from entry.

Searches the entry in the current restriction for a location matching diary-icalendar-location-regexp. If a location is found, it will be parsed as an icalendar-location node. Returns a list containing just this node, or nil.

Source Code

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

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