File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -491,8 +491,8 @@ and TIME is a Lisp time value (HI LO USEC)."
491491(defun org-id-update-id-locations (&optional files silent )
492492 " Scan relevant files for IDs.
493493Store the relation between files and corresponding IDs.
494- This will scan all agenda files, all associated archives, and all
495- files currently mentioned in `org-id-locations' .
494+ This will scan all agenda files, all associated archives, all open Org
495+ files, and all files currently mentioned in `org-id-locations' .
496496When FILES is given, scan also these files.
497497If SILENT is non-nil, messages are suppressed."
498498 (interactive )
@@ -515,6 +515,8 @@ If SILENT is non-nil, messages are suppressed."
515515 org-id-extra-files)
516516 ; ; All files known to have IDs.
517517 org-id-files
518+ ; ; All Org files open in Emacs.
519+ (mapcar #'buffer-file-name (org-buffer-list 'files t ))
518520 ; ; Additional files from function call.
519521 files )))))
520522 (nfiles (length files ))
You can’t perform that action at this time.
0 commit comments