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:
parent
86cbaff2b8
commit
6de5bcee87
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue