[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org e6e1c08: org-contacts.el: Only use org-id-store-lin
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org e6e1c08: org-contacts.el: Only use org-id-store-link if org-id is loaded |
Date: |
Mon, 4 Jan 2021 12:57:10 -0500 (EST) |
branch: externals/org
commit e6e1c081161f771f6a1453319588993663933a02
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 6b83c6e4e that made org-contacts-anniversaries
error if org-id was not loaded.
---
contrib/lisp/org-contacts.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el
index 82881ec..7ad4255 100644
--- a/contrib/lisp/org-contacts.el
+++ b/contrib/lisp/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
org-contacts-files)))
- (if org-id-link-to-org-use-id
+ (if (and (featurep 'org-id) org-id-link-to-org-use-id)
(org-id-store-link)
(let ((headline-str (substring-no-properties (org-get-heading t t t t))))
(org-store-link-props
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org e6e1c08: org-contacts.el: Only use org-id-store-link if org-id is loaded,
ELPA Syncer <=