GNU bug report logs -
#44804
28.0.50; loading EBDB using use-package is throwing error
Previous Next
Reported by: Pankaj Jangid <pankaj <at> codeisgreat.org>
Date: Sun, 22 Nov 2020 18:28:01 UTC
Severity: normal
Tags: moreinfo
Found in version 28.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 44804 <at> debbugs.gnu.org (full text, mbox):
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:
> Here is the error message, when I load ebdb using use-package
>
> Error (use-package): Failed to parse package ebdb: Wrong type argument:
> listp, require Disable showing Disable logging
>
> My configuration is:
>
> (use-package ebdb
> :ensure t
> :config
> (setq ebdb-mua-pop-up nil)
> :hook
> (emacs-startup . (progn
> (require 'ebdb-gnus)
> (require 'ebdb-message))))
I've never used use-package so I'm not sure how much help I'm going to
be here. But looking at its documentation, I wonder if it wouldn't make
more sense to do this:
(use-package ebdb-gnus
:ensure t
:config
(setq ebdb-mua-pop-up nil)
:hook gnus-startup)
(use-package ebdb-message
:ensure t
:hook gnus-startup)
EBDB is set up to load everything you need if you just require the
relevant MUA packages, so this should do it. All other likely entry
points to EBDB should be autoloaded already. I don't know what :ensure
does, but I left it in there.
Try that and see if it works correctly?
Having these statements on the `emacs-startup-hook' seems like you're
not gaining anything by using use-package. You might as well just
(require 'ebdb-gnus) at the top-level of your init.
HTH,
Eric
This bug report was last modified 3 years and 85 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.