[Top][All Lists]

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

[elpa] scratch/org-contacts-rebased 38f7b80 100/118: org-contacts.el: On

From: Stefan Monnier
Subject: [elpa] scratch/org-contacts-rebased 38f7b80 100/118: org-contacts.el: Only use org-id-store-link if org-id is loaded
Date: Fri, 12 Nov 2021 15:37:12 -0500 (EST)

branch: scratch/org-contacts-rebased
commit 38f7b807ed7ae210e53d4cf1e3066bd4d07b048c
Author: David Florness <david@florness.com>
Commit: stardiviner <numbchild@gmail.com>

    org-contacts.el: Only use org-id-store-link if org-id is loaded
    Fixes bug introduced in 79d7a885d that made org-contacts-anniversaries
    error if org-id was not loaded.
 org-contacts.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-contacts.el b/org-contacts.el
index 82881ec..7ad4255 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1166,7 +1166,7 @@ are effectively trimmed).  If nil, all zero-length 
substrings are retained."
   "Store the contact in `org-contacts-files' with a link."
   (when (and (eq major-mode 'org-mode)
             (member (buffer-file-name) (mapcar 'expand-file-name 
-    (if org-id-link-to-org-use-id
+    (if (and (featurep 'org-id) org-id-link-to-org-use-id)
       (let ((headline-str (substring-no-properties (org-get-heading t t t t))))

reply via email to

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