From: David Masterson <dsmasterson@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Sub-libaries in a package and use-package ?
Date: Tue, 27 Jun 2023 11:04:04 -0700 [thread overview]
Message-ID: <SJ0PR03MB5455E02578974B9E1FD126F1A227A@SJ0PR03MB5455.namprd03.prod.outlook.com> (raw)
In-Reply-To: <87bkh1zbk7.fsf@posteo.net> (Philip Kaludercic's message of "Tue, 27 Jun 2023 06:03:36 +0000")
Philip Kaludercic <philipk@posteo.net> writes:
> David Masterson <dsmasterson@gmail.com> writes:
>
>> The 'async' package has 2 extra libraries (dired-async &
>> smtpmail-async). I'm trying to figure out how to set these up with
>> use-package, The documentation for use-package in chapter 3.1 says:
>>
>> ----
>> But the ‘foo’ package might also contain a library named ‘foo-extra.el’.
>> If that library is not loaded automatically, you will need a separate
>> ‘use-package’ declaration to make sure that it is.
>> ----
>>
>> It doesn't say anything else about this (CMIIAW), but this suggests to
>> me that the following should work:
>>
>> (use-package async
>> :config (async-bytecomp-package-mode 1)
>> )
>> (use-package dired-async
>> :config (dired-async-mode 1)
>> )
>> (use-package smtpmail-async
>> :config (setq message-send-mail-function 'aync-smtpmail-send-it)
>> )
>>
>> But the following error when I start Emacs:
>>
>> Error (use-package): Failed to install dired-async: Package
>> ‘dired-async-’ is unavailable
>> Error (use-package): Failed to install smtpmail-async: Package
>> ‘smtpmail-async-’ is unavailable
>
> Did you set `use-package-always-ensure' to a non-nil value? It might be
> that use-package is trying to install the package
> {dired,stmpmail}-async, even though these are just libraries, part of
> the async package.
Hmm. I do have 'use-package-always-ensure' set to t, but it doesn't look
like it's trying to install -- it just can't find the package. There
should be a mechanism to tell use-package that this is a library in some
other package,
> Also, I don't think it is necessary to configure all of these
> separately, at least in your case.
Possibly true. I can get around this by requiring the sub-libraries in
the :config section of async. But that doesn't quite feel right,,, :(
--
David Masterson
next prev parent reply other threads:[~2023-06-27 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-26 22:36 Sub-libaries in a package and use-package ? David Masterson
2023-06-27 6:03 ` Philip Kaludercic
2023-06-27 18:04 ` David Masterson [this message]
2023-06-27 19:01 ` Philip Kaludercic
2023-07-03 4:48 ` David Masterson
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=SJ0PR03MB5455E02578974B9E1FD126F1A227A@SJ0PR03MB5455.namprd03.prod.outlook.com \
--to=dsmasterson@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=philipk@posteo.net \
/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.
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).