-
-
Notifications
You must be signed in to change notification settings - Fork 141
Circumvented use of package-activated-list
if package.el is not used
#138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Why does this causes the package number to never be shown? |
As far as I understood, if you are not using package.el, the number of packages will not be shown. But if you are using package.el it should show the number |
That's odd, even if my package-enable-at-startup is t, my packages are not displayed. Are your packages being displayed? |
I'll check it later again. Maybe we missed something |
I seem to remember it worked just fine when I tried it. |
It's possible I may have misunderstood how
I find this a little confusing, but it seems like In any case, it seems my fix is simply wrong. A quick workaround would be to simply perform the bound-check on @raxod502 Sorry for bothering you about this, but do you know of a reliable way to determine if someone is using the regular |
Possible fix here: #147 |
Relax brother, you just addressed a problem you were having and tried to fix it! Nothing wrong about that! It's cool, we'll find a solution! That's the fun thing about contributing, if you get it wrong there's nothing to worry about, there will likely be people that are willing to help you! 😄 |
(length package-activated-list) (emacs-init-time)) | ||
(defvar dashboard-init-info | ||
;; Check if package.el was loaded and if package loading was enabled | ||
(if (bound-and-true-p package-enable-at-startup) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This condition is not solid. package
can be used although package-enable-at-startup
is nil.
This should fix #136.
I tried to look around to see if there was a very reliable way to determine if package.el is being used. Unfortunately, I didn't really find a foolproof method. This PR is my best attempt at providing something that is somewhat reliable, and it at least solves my issue.
My Emacs and Elisp skills are basically terrible, so feel free to reject this if it's not up to snuff.