emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-contacts 02ac3ed9d0 150/154: Fix Warning: ‘org-sho


From: ELPA Syncer
Subject: [elpa] externals/org-contacts 02ac3ed9d0 150/154: Fix Warning: ‘org-show-context’ is an obsolete function (as of 9.6); use ‘org-fold-show-context’ instead.
Date: Fri, 9 Sep 2022 15:58:56 -0400 (EDT)

branch: externals/org-contacts
commit 02ac3ed9d009e94ca17b996ebb4032e47bc0ce68
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]