summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-11-19 15:50:27 -0800
committerGitHub <noreply@github.com>2018-11-19 15:50:27 -0800
commit7e40a9c42409d2a05036ae6bdefb6e56b3668d8e (patch)
tree47f9cb19be5f18125b9445f172baa1d37655b4ab /lisp
parent77ad44639fed5f9bc1059e46acd437290d2b033a (diff)
parentdb3563945727a11bbd08a8f8a8de435c5a2b3618 (diff)
downloademacs-7e40a9c42409d2a05036ae6bdefb6e56b3668d8e.tar.gz
emacs-7e40a9c42409d2a05036ae6bdefb6e56b3668d8e.tar.bz2
emacs-7e40a9c42409d2a05036ae6bdefb6e56b3668d8e.zip
Merge pull request from conao3/fix_default_value
fix gethash default value for use-package-statistics-time GitHub-reference: https://github.com/jwiegley/use-package/issues/681
Diffstat (limited to 'lisp')
-rw-r--r--lisp/use-package/use-package-core.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el
index 51746b3fff6..7fc840f0a94 100644
--- a/lisp/use-package/use-package-core.el
+++ b/lisp/use-package/use-package-core.el
@@ -988,10 +988,10 @@ The date is returned as a string."
(defun use-package-statistics-time (package)
"Return the time is took for PACKAGE to load."
- (+ (float-time (gethash :config-secs package 0))
- (float-time (gethash :init-secs package 0))
- (float-time (gethash :preface-secs package 0))
- (float-time (gethash :use-package-secs package 0))))
+ (+ (float-time (gethash :config-secs package '(0 0 0 0)))
+ (float-time (gethash :init-secs package '(0 0 0 0)))
+ (float-time (gethash :preface-secs package '(0 0 0 0)))
+ (float-time (gethash :use-package-secs package '(0 0 0 0)))))
(defun use-package-statistics-convert (package)
"Return information about PACKAGE.