Function: org-icalendar-combine-agenda-files

org-icalendar-combine-agenda-files is an autoloaded, interactive and byte-compiled function defined in ox-icalendar.el.gz.

Signature

(org-icalendar-combine-agenda-files &optional ASYNC)

Documentation

Combine all agenda files into a single iCalendar file.

A non-nil optional argument ASYNC means the process should happen asynchronously. The resulting file should be accessible through the org-export-stack interface.

The file is stored under the name chosen in org-icalendar-combined-agenda-file.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-icalendar.el.gz
;;;###autoload
(defun org-icalendar-combine-agenda-files (&optional async)
  "Combine all agenda files into a single iCalendar file.

A non-nil optional argument ASYNC means the process should happen
asynchronously.  The resulting file should be accessible through
the `org-export-stack' interface.

The file is stored under the name chosen in
`org-icalendar-combined-agenda-file'."
  (interactive)
  (if async
      (let ((files (cl-remove-if-not #'file-exists-p (org-agenda-files t))))
	(org-export-async-start
	    (lambda (_)
	      (org-export-add-to-stack
	       (expand-file-name org-icalendar-combined-agenda-file)
	       'icalendar))
	  `(apply #'org-icalendar--combine-files ',files)))
    (apply #'org-icalendar--combine-files (org-agenda-files t))))