diff options
author | Ihor Radchenko <yantar92@posteo.net> | 2024-01-22 10:28:06 +0100 |
---|---|---|
committer | Ihor Radchenko <yantar92@posteo.net> | 2024-01-22 10:28:06 +0100 |
commit | 37b38252545f9bd02406690c567109c1a098034d (patch) | |
tree | 821b8d2db331c45cfadb99a27c8b62d73e8712cc | |
parent | ae651a505fad5c19a11de142d3c3f72830417efe (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.el | 4 |
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)) |