From 36f5e3b3b912b1f5b9241aef103cd00ba7c7d071 Mon Sep 17 00:00:00 2001 From: Chris Burroughs Date: Fri, 28 Jan 2022 11:34:50 -0500 Subject: [PATCH] correct straight.el package count In emacs the "size" of as hash table refers to how big the table itself is. In other words, its capacity. "count" is for "the actual number of entries". --- dashboard-widgets.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard-widgets.el b/dashboard-widgets.el index d22fed9a..9b3991e2 100644 --- a/dashboard-widgets.el +++ b/dashboard-widgets.el @@ -169,7 +169,7 @@ Example: (when (bound-and-true-p package-alist) (setq package-count (length package-activated-list))) (when (boundp 'straight--profile-cache) - (setq package-count (+ (hash-table-size straight--profile-cache) package-count))) + (setq package-count (+ (hash-table-count straight--profile-cache) package-count))) (if (zerop package-count) (format "Emacs started in %s" time) (format "%d packages loaded in %s" package-count time))))