Function: org-id-locations-save
org-id-locations-save is a byte-compiled function defined in
org-id.el.gz.
Signature
(org-id-locations-save)
Documentation
Save org-id-locations in org-id-locations-file.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-id.el.gz
(defun org-id-locations-save ()
"Save `org-id-locations' in `org-id-locations-file'."
(when (and org-id-track-globally org-id-locations)
(let ((out (if (hash-table-p org-id-locations)
(org-id-hash-to-alist org-id-locations)
org-id-locations)))
(when (and org-id-locations-file-relative out)
(setq out (mapcar
(lambda (item)
(if (file-name-absolute-p (car item))
(cons (file-relative-name
(car item) (file-name-directory
org-id-locations-file))
(cdr item))
item))
out)))
(with-temp-file org-id-locations-file
(let ((print-level nil)
(print-length nil))
(print out (current-buffer)))))))