Function: org-id-add-location
org-id-add-location is a byte-compiled function defined in
org-id.el.gz.
Signature
(org-id-add-location ID FILE)
Documentation
Add the ID with location FILE to the database of ID locations.
This function has :around advice: org-roam--handle-absent-org-id-locations-file-a.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-id.el.gz
(defun org-id-add-location (id file)
"Add the ID with location FILE to the database of ID locations."
;; Only if global tracking is on, and when the buffer has a file
(unless file
(error "`org-id-get' expects a file-visiting buffer"))
(let ((afile (abbreviate-file-name file)))
(when (and org-id-track-globally id)
(unless org-id-locations (org-id-locations-load))
(puthash id afile org-id-locations)
(unless (member afile org-id-files)
(add-to-list 'org-id-files afile)))))