]> git.eshelyaron.com Git - emacs.git/commitdiff
Only printing debug messages if use-package-verbose is `debug'
authorJohn Wiegley <johnw@newartisans.com>
Sat, 27 Feb 2016 00:14:51 +0000 (16:14 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Sat, 27 Feb 2016 00:16:49 +0000 (16:16 -0800)
Fixes https://github.com/jwiegley/use-package/issues/271

lisp/use-package/use-package.el

index 617c523f8ff204afd4ea2c6fa03cbcffff3c8ee1..0767d8e7fb07564611a8e020ba8326c91e208092 100644 (file)
@@ -58,7 +58,8 @@ If you customize this, then you should require the `use-package'
 feature in files that use `use-package', even if these files only
 contain compiled expansions of the macros.  If you don't do so,
 then the expanded macros do their job silently."
-  :type 'boolean
+  :type '(choice (const :tag "Quiet" nil) (const :tag "Verbose" t)
+                 (const :tag "Debug" debug))
   :group 'use-package)
 
 (defcustom use-package-debug nil
@@ -1136,7 +1137,7 @@ this file.  Usage:
                               (plist-get args* :defines))
                     (with-demoted-errors
                         ,(format "Cannot load %s: %%S" name)
-                      ,(if use-package-verbose
+                      ,(if (eq use-package-verbose 'debug)
                            `(message "Compiling package %s" ',name-symbol))
                       ,(unless (plist-get args* :no-require)
                          (use-package-load-name name)))))))