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

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

[nongnu] elpa/org-contrib 95008ce07a 06/10: lisp/org-checklist.el: Handl


From: ELPA Syncer
Subject: [nongnu] elpa/org-contrib 95008ce07a 06/10: lisp/org-checklist.el: Handle compiler warnings about a2ps-print library
Date: Wed, 17 Jan 2024 07:01:00 -0500 (EST)

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

    lisp/org-checklist.el: Handle compiler warnings about a2ps-print library
    
    * lisp/org-checklist.el (org-make-checklist-export): Fix the call to
    `a2ps-buffer'.  This function accepts a mandatory argument.
    (org-state):
    (a2ps-switches):
    (a2ps-buffer): Add declares.
---
 lisp/org-checklist.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lisp/org-checklist.el b/lisp/org-checklist.el
index bb68c3d475..192f37d036 100644
--- a/lisp/org-checklist.el
+++ b/lisp/org-checklist.el
@@ -43,7 +43,13 @@
 ;;
 ;;; Code:
 (require 'org)
+(defvar org-state)
+;; FIXME: This library requires
+;; https://git.savannah.gnu.org/cgit/a2ps.git/tree/contrib/emacs/a2ps-print.el 
file
+;; It is a part of a2ps distribution.
 (load "a2ps-print" 'no-error)
+(defvar a2ps-switches)
+(declare-function a2ps-buffer "a2ps-print" (argp))
 
 (setq org-default-properties (cons "RESET_CHECK_BOXES" (cons 
"LIST_EXPORT_BASENAME" org-default-properties)))
 
@@ -127,7 +133,7 @@ of checkbox items"
            (let* ((current-a2ps-switches a2ps-switches)
                   (a2ps-switches (append current-a2ps-switches
                                          org-checklist-a2ps-params)))
-             (a2ps-buffer))))))))
+             (a2ps-buffer nil))))))))
 
 (defun org-checklist ()
   (when (member org-state org-done-keywords) ;; org-state dynamically bound in 
org.el/org-todo



reply via email to

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