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

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

[nongnu] elpa/toc-org 0b759818ee 025/128: fix byte-compilation warning


From: ELPA Syncer
Subject: [nongnu] elpa/toc-org 0b759818ee 025/128: fix byte-compilation warning
Date: Sun, 2 Jan 2022 09:59:07 -0500 (EST)

branch: elpa/toc-org
commit 0b759818ee05b2abe44dddd3d561d38ef17050cb
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>

    fix byte-compilation warning
---
 .travis.yml | 2 +-
 org-toc.el  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index b1bd26412f..b55c367a1f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,4 +7,4 @@ before_install:
   # Update and install the Emacs for our environment
   - sudo apt-get update -qq
   - sudo apt-get install -qq -yy emacs24-nox emacs24-el
-script: emacs -batch -l ert -l *.el -f ert-run-tests-batch-and-exit
+script: emacs -batch -l ert -l *.el -f ert-run-tests-batch-and-exit && emacs 
-batch -f batch-byte-compile *.el 2>&1 | sed '/^Wrote.*\.elc$/d' | xargs -r ls
diff --git a/org-toc.el b/org-toc.el
index 5ad797a057..5122fcf021 100644
--- a/org-toc.el
+++ b/org-toc.el
@@ -106,6 +106,7 @@ tags."
                (insert content)
                (org-toc-raw-toc))
              gold)))
+  (declare-function org-toc-test-raw-toc-gold-test "org-toc") ;; suppress 
compiler warning
 
   (let ((beg "* About\n:TOC:\n drawer\n:END:\n\norg-toc is a utility to have 
an up-to-date table of contents in the\norg files without exporting (useful 
primarily for readme files on\nGitHub).\n\nIt is similar to the 
[[https://github.com/ardumont/markdown-toc][markdown-toc]] package, but works 
for org files.\n:TOC:\n  drawer\n:END:\n\n* Table of Contents                   
                                  ")
         (gold "* About\n"))
@@ -276,7 +277,7 @@ following tag formats:
   (add-hook 'before-save-hook 'org-toc-insert-toc nil t))
 
 ;; Local Variables:
-;; compile-command: "emacs -batch -l ert -l *.el -f 
ert-run-tests-batch-and-exit"
+;; compile-command: "emacs -batch -l ert -l *.el -f 
ert-run-tests-batch-and-exit && emacs -batch -f batch-byte-compile *.el 2>&1 | 
sed '/^Wrote.*\.elc$/d' | xargs -r ls"
 ;; End:
 
 (provide 'org-toc)



reply via email to

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