From cdde3c40f221e1baf9804c21a5d558d4103522ca Mon Sep 17 00:00:00 2001 From: Xu Chunyang Date: Fri, 19 Jan 2024 00:38:56 +0800 Subject: [PATCH] * elisp-demos.el: Silence byte compiler warning on org-show-entry --- elisp-demos.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elisp-demos.el b/elisp-demos.el index f23b229..5acf0c7 100644 --- a/elisp-demos.el +++ b/elisp-demos.el @@ -108,7 +108,9 @@ If set, new notes are added to the first file in this list." (let ((pos (org-find-exact-headline-in-buffer (symbol-name symbol)))) (when pos (goto-char pos) - (org-show-entry) + (funcall (if (fboundp 'org-fold-show-entry) + 'org-fold-show-entry + 'org-show-entry)) (if (fboundp 'pop-to-buffer-same-window) (pop-to-buffer-same-window (current-buffer)) (pop-to-buffer (current-buffer)))