From 02ac3ed9d009e94ca17b996ebb4032e47bc0ce68 Mon Sep 17 00:00:00 2001 From: stardiviner Date: Sat, 4 Jun 2022 08:58:26 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Warning:=20=E2=80=98org-show-context?= =?UTF-8?q?=E2=80=99=20is=20an=20obsolete=20function=20(as=20of=209.6);=20?= =?UTF-8?q?use=20=E2=80=98org-fold-show-context=E2=80=99=20instead.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- org-contacts.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org-contacts.el b/org-contacts.el index 8e75884..7fcb8a7 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)