unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Pankaj Jangid <pankaj@codeisgreat.org>
Cc: 44804@debbugs.gnu.org
Subject: bug#44804: 28.0.50; loading EBDB using use-package is throwing error
Date: Sun, 22 Nov 2020 11:21:01 -0800	[thread overview]
Message-ID: <87blfpkxk2.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m2im9x1c3l.fsf@codeisgreat.org> (Pankaj Jangid's message of "Sun, 22 Nov 2020 23:57:10 +0530")

Pankaj Jangid <pankaj@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





  reply	other threads:[~2020-11-22 19:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 18:27 bug#44804: 28.0.50; loading EBDB using use-package is throwing error Pankaj Jangid
2020-11-22 19:21 ` Eric Abrahamsen [this message]
2020-11-23  2:59   ` Pankaj Jangid
2020-11-23  4:13     ` Eric Abrahamsen
2020-11-23  5:47       ` Pankaj Jangid
2020-11-23  6:02         ` Eric Abrahamsen
2020-11-23  6:40           ` Pankaj Jangid
2020-11-23 18:28             ` Eric Abrahamsen
2022-01-28 15:08               ` Lars Ingebrigtsen
2022-01-28 16:21                 ` Eric Abrahamsen
2022-02-28  9:52                   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87blfpkxk2.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=44804@debbugs.gnu.org \
    --cc=pankaj@codeisgreat.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).