From: John Wiegley Date: Sun, 3 Dec 2017 21:11:49 +0000 (-0800) Subject: Fix a byte-compiler warning in up-ensure.el X-Git-Tag: emacs-29.0.90~1306^2~15^2~177 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=99200a1642318a09f77d42a298e2e063c378dee4;p=emacs.git Fix a byte-compiler warning in up-ensure.el --- diff --git a/up-core.el b/up-core.el index 81cae6e177b..95d4fbb7860 100644 --- a/up-core.el +++ b/up-core.el @@ -45,10 +45,7 @@ (eval-when-compile (require 'cl) - (require 'regexp-opt) - - (declare-function package-installed-p "package") - (declare-function package-read-all-archive-contents "package" ())) + (require 'regexp-opt)) (defgroup use-package nil "A use-package declaration for simplifying your `.emacs'." diff --git a/up-ensure.el b/up-ensure.el index 75b0ea16fe1..2e3d4ec4116 100644 --- a/up-ensure.el +++ b/up-ensure.el @@ -35,6 +35,10 @@ (require 'up-core) +(eval-when-compile + (declare-function package-installed-p "package") + (declare-function package-read-all-archive-contents "package" ())) + (defcustom use-package-always-ensure nil "Treat every package as though it had specified using `:ensure SEXP'. See also `use-package-defaults', which uses this value."