branch: externals/org-contacts commit 02ac3ed9d009e94ca17b996ebb4032e47bc0ce68 Author: stardiviner <numbch...@gmail.com> Commit: stardiviner <numbch...@gmail.com>
Fix Warning: ‘org-show-context’ is an obsolete function (as of 9.6); use ‘org-fold-show-context’ instead. --- org-contacts.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org-contacts.el b/org-contacts.el index 8e75884335..7fcb8a7e56 100644 --- a/org-contacts.el +++ b/org-contacts.el @@ -742,7 +742,10 @@ Usage: (add-hook 'completion-at-point-functions 'org-contacts-org-complete-funct (when marker (switch-to-buffer-other-window (marker-buffer marker)) (goto-char marker) - (when (eq major-mode 'org-mode) (org-show-context 'agenda))))) + (when (eq major-mode 'org-mode) + (if (fboundp 'org-fold-show-context) + (org-fold-show-context 'agenda) + (org-show-context 'agenda)))))) (with-no-warnings (defvar date)) ;; unprefixed, from calendar.el (defun org-contacts-anniversaries (&optional field format)