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

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

[nongnu] elpa/org-contrib 8ce9a426df: lisp/org-invoice.el: Fix compiler


From: ELPA Syncer
Subject: [nongnu] elpa/org-contrib 8ce9a426df: lisp/org-invoice.el: Fix compiler warning
Date: Tue, 23 Jan 2024 16:00:18 -0500 (EST)

branch: elpa/org-contrib
commit 8ce9a426dfa2a42884f6b4ef926c3d0550df244b
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    lisp/org-invoice.el: Fix compiler warning
    
    * lisp/org-invoice.el (org-invoice-report): Use non-obsolete function
    name when available.
---
 lisp/org-invoice.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/org-invoice.el b/lisp/org-invoice.el
index 1d34e5e4ad..9a845e7bc4 100644
--- a/lisp/org-invoice.el
+++ b/lisp/org-invoice.el
@@ -387,7 +387,9 @@ I place mine under a third-level heading like so:
   (let ((report (org-invoice-in-report-p)))
     (when (and (not report) jump)
       (when (re-search-forward "^#\\+BEGIN:[ \t]+invoice" nil t)
-        (org-show-entry)
+       (if (fboundp 'org-fold-show-entry)
+            (org-fold-show-entry)
+          (with-no-warnings (org-show-entry)))
         (beginning-of-line)
         (setq report (point))))
     (if report (goto-char report)



reply via email to

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