From: Artyom Khramov Date: Sat, 19 May 2018 18:44:43 +0000 (+0600) Subject: Ensure system package cleanup X-Git-Tag: emacs-29.0.90~1306^2~15^2~70^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f38a1009173c0b30c358041df52967ecbde03560;p=emacs.git Ensure system package cleanup The function introduced in https://github.com/jwiegley/use-package/issues/673 wasn't declared at compile time, and it made byte compiler unhappy. Moreover, it was forgotten to remove redundant compile time variables. Thanks @tarsius for pointing that out. This change * Removes redundant variable declarations * Adds `system-packages-get-command` function declaration. Copyright-paperwork-exempt: yes --- diff --git a/lisp/use-package/use-package-ensure-system-package.el b/lisp/use-package/use-package-ensure-system-package.el index 9f2a59ae5e6..e4b3e32b547 100644 --- a/lisp/use-package/use-package-ensure-system-package.el +++ b/lisp/use-package/use-package-ensure-system-package.el @@ -23,9 +23,7 @@ (require 'system-packages nil t) (eval-when-compile - (defvar system-packages-package-manager) - (defvar system-packages-supported-package-managers) - (defvar system-packages-use-sudo)) + (declare-function system-packages-get-command "system-packages")) (defun use-package-ensure-system-package-install-command (pack) "Return the default install command for PACK."