summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2024-01-22 10:28:06 +0100
committerIhor Radchenko <yantar92@posteo.net>2024-01-22 10:28:06 +0100
commit37b38252545f9bd02406690c567109c1a098034d (patch)
tree821b8d2db331c45cfadb99a27c8b62d73e8712cc
parentae651a505fad5c19a11de142d3c3f72830417efe (diff)
lisp/org-annotate-file.el: Fix compiler warnings
* lisp/org-annotate-file.el (org-annotate-file-annotate): Fix obsolete function warning.
-rw-r--r--lisp/org-annotate-file.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org-annotate-file.el b/lisp/org-annotate-file.el
index e4442a7..d350884 100644
--- a/lisp/org-annotate-file.el
+++ b/lisp/org-annotate-file.el
@@ -132,7 +132,9 @@ The annotation will link to ANNOTATED-BUFFER if specified,
(goto-char (point-min))
(widen)
(when org-annotate-file-always-open
- (org-show-all))
+ (if (fboundp 'org-fold-show-all)
+ (org-fold-show-all)
+ (with-no-warnings (org-show-all))))
(unless (search-forward-regexp
(concat "^* " (regexp-quote link)) nil t)
(org-annotate-file-add-upper-level link))