branch: externals/org-contacts commit 3d9ef1d5a9df30c7135d7a4085a450bc2a1a2cf2 Author: stardiviner <numbch...@gmail.com> Commit: stardiviner <numbch...@gmail.com>
Add new command `org-contacts-cache-reset` to reset `org-contacts--candidates-cache` --- org-contacts.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org-contacts.el b/org-contacts.el index 9e3a25a9b4..cc83b5f8af 100644 --- a/org-contacts.el +++ b/org-contacts.el @@ -972,6 +972,11 @@ This can be property key checking." (defvar org-contacts--candidates-cache nil "A cache variable of `org-contacts--candidates'.") +(defun org-contacts-cache-reset () + "Reset `org-contacts--candidates-cache'." + (interactive) + (setq org-contacts--candidates-cache nil)) + (defun org-contacts-browse-function (contact-name) "Jump to CONTACT-NAME headline." (mapcar