0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

Skip entries with no ID when updating ID locations

* lisp/org-id.el (org-id-update-id-locations): Saves a little chatter
about duplicate "nil" IDs.
This commit is contained in:
Eric Abrahamsen 2020-02-19 13:23:40 -08:00 committed by Bastien
parent 86cbaff2b8
commit 6de5bcee87

View file

@ -503,10 +503,11 @@ When FILES is given, scan also these files."
i nfiles file))
(when (file-exists-p file)
(insert-file-contents file nil nil nil 'replace)
(setq ids (org-map-entries
(lambda ()
(org-entry-get (point) "ID"))
"ID<>\"\""))
(setq ids (delq nil
(org-map-entries
(lambda ()
(org-entry-get (point) "ID"))
"ID<>\"\"")))
(dolist (id ids)
(if (member id seen-ids)
(progn