summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Florness <david@florness.com>2021-01-03 18:09:18 -0500
committerstardiviner <numbchild@gmail.com>2021-01-05 01:33:20 +0800
commite6e1c081161f771f6a1453319588993663933a02 (patch)
tree072533bb89c64ef7bf618ab2eb0fce18d33dab6d
parente7fe57dde392d8f3973a3d0a6074f7e0a31585d9 (diff)
downloadorg-mode-e6e1c081161f771f6a1453319588993663933a02.tar.gz
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.
-rw-r--r--contrib/lisp/org-contacts.el2
1 files changed, 1 insertions, 1 deletions
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