branch: externals/org-contacts
commit 30d137fbac8b9b908ad978ba588f1d47e8ca59cd
Author: stardiviner <numbch...@gmail.com>
Commit: stardiviner <numbch...@gmail.com>

    Use `with-memoization` only if it is available
---
 org-contacts.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-contacts.el b/org-contacts.el
index 3b1d3e055c..2f234b116c 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1496,7 +1496,9 @@ Each element has the form (NAME . (FILE . POSITION))."
         (org-contacts-files))))
 
 (setq org-contacts-all-contacts
-      (with-memoization org-contacts-all-contacts
+      (if (fboundp 'with-memoization)
+          (with-memoization org-contacts-all-contacts
+            (org-contacts--all-contacts))
         (org-contacts--all-contacts)))
 
 ;;;###autoload

Reply via email to