emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] org-id: Fix behavior when `org-id-extra-values' is a symbol


From: Erik Hetzner
Subject: [PATCH] org-id: Fix behavior when `org-id-extra-values' is a symbol
Date: Sat, 04 Jul 2020 12:32:11 -0700
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/27.0.91 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

* lisp/org-id.el (org-id-update-id-locations): When
`org-id-extra-values' is a symbol, it should be evaluated as a
variable.

In 37a5020bb, `org-id-update-id-locations' was rewritten, and the
functionality to allow the variable `org-id-extra-values' to be a
symbol that references another variable was removed.  This change
restores that functionality.
---
 lisp/org-id.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/org-id.el b/lisp/org-id.el
index 9456b0629..387d8268b 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.
-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]