Function: icalendar-handle-parse-error

icalendar-handle-parse-error is a byte-compiled function defined in icalendar-parser.el.gz.

Signature

(icalendar-handle-parse-error ERR-DATA &optional SKIP-MSG ERR-BUFFER)

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/icalendar-parser.el.gz
(defun ical:handle-parse-error (err-data &optional skip-msg err-buffer)
  (let* ((err-sym (car err-data))
         (err-plist (cdr err-data))
         (buf (plist-get err-plist :buffer))
         (restart-pos (plist-get err-plist :restart-at))
         (new-msg
          (concat (plist-get err-plist :message)
                  "..."
                  (cond (skip-msg skip-msg)
                        (restart-pos (format "skipping to %d" restart-pos))
                        (t "skipping")))))
    (setq err-plist (plist-put err-plist :message new-msg))
    (setq err-plist (plist-put err-plist :severity 1))
    (ical:handle-generic-error (cons err-sym err-plist) err-buffer)
    (when restart-pos
      (with-current-buffer buf
        (goto-char restart-pos)))))