Function: org-add-archive-files

org-add-archive-files is an autoloaded and byte-compiled function defined in org-archive.el.gz.

Signature

(org-add-archive-files FILES)

Documentation

Splice the archive files into the list of files.

This implies visiting all these files and finding out what the archive file is.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-archive.el.gz
;;;###autoload
(defun org-add-archive-files (files)
  "Splice the archive files into the list of files.
This implies visiting all these files and finding out what the
archive file is."
  (org-uniquify
   (apply
    'append
    (mapcar
     (lambda (f)
       (if (not (file-exists-p f))
	   nil
	 (with-current-buffer (org-get-agenda-file-buffer f)
	   (cons f (org-all-archive-files)))))
     files))))