[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-contacts 30d137fbac 3/3: Use `with-memoization` onl
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-contacts 30d137fbac 3/3: Use `with-memoization` only if it is available |
Date: |
Fri, 2 Aug 2024 06:58:41 -0400 (EDT) |
branch: externals/org-contacts
commit 30d137fbac8b9b908ad978ba588f1d47e8ca59cd
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@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