Function: org-icalendar-create-uid

org-icalendar-create-uid is a byte-compiled function defined in ox-icalendar.el.gz.

Signature

(org-icalendar-create-uid FILE &optional BELL)

Documentation

Set ID property on headlines missing it in FILE.

When optional argument BELL is non-nil, inform the user with a message if the file was modified.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-icalendar.el.gz
;;; Internal Functions

(defun org-icalendar-create-uid (file &optional bell)
  "Set ID property on headlines missing it in FILE.
When optional argument BELL is non-nil, inform the user with
a message if the file was modified."
  (let (modified-flag)
    (org-map-entries
     (lambda ()
       (let ((entry (org-element-at-point)))
	 (unless (org-element-property :ID entry)
	   (org-id-get-create)
	   (setq modified-flag t)
	   (forward-line))))
     nil nil 'comment)
    (when (and bell modified-flag)
      (message "ID properties created in file \"%s\"" file)
      (sit-for 2))))