浏览代码

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.
Erik Hetzner 4 年之前
父节点
当前提交
ab80b26667
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/org-id.el

+ 3 - 1
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.