diff options
author | Erik Hetzner <egh@e6h.org> | 2020-07-04 12:32:11 -0700 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-07-05 23:47:51 +0200 |
commit | ab80b26667883a0fa5e2d7349eaa0ccaf014d939 (patch) | |
tree | 1f8b1eb97573d7a5f3c1107b83eb61398078328a | |
parent | cc570144f88ee1899d90246592516361fe08da99 (diff) | |
download | org-mode-ab80b26667883a0fa5e2d7349eaa0ccaf014d939.tar.gz |
id: Fix behavior when `org-id-extra-files' is a symbol
* lisp/org-id.el (org-id-update-id-locations): When
`org-id-extra-files' is a symbol, it should be evaluated as a
variable.
In 9865e6bd8be65229be4eac4f459f62e47fab2be737a5020bb,
`org-id-update-id-locations' was rewritten, and the functionality to
allow the variable `org-id-extra-files' to be a symbol that references
another variable was removed. This change restores that
functionality.
-rw-r--r-- | lisp/org-id.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-id.el b/lisp/org-id.el index 9456b06..387d826 100644 --- a/lisp/org-id.el +++ b/lisp/org-id.el @@ -495,7 +495,9 @@ When FILES is given, scan also these files." ;; Agenda files and all associated archives. (org-agenda-files t org-id-search-archives) ;; Explicit extra files. - (unless (symbolp org-id-extra-files) org-id-extra-files) + (if (symbolp org-id-extra-files) + (symbol-value org-id-extra-files) + org-id-extra-files) ;; All files known to have IDs. org-id-files ;; Additional files from function call. |