all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Philip Kaludercic <philipk@posteo.net>,
	David Masterson <dsmasterson@gmail.com>,
	Rudolf Schlatte <rudi@constantly.at>,
	help-gnu-emacs@gnu.org
Subject: Re: package-autoremove ?
Date: Fri, 25 Aug 2023 14:58:19 +0200	[thread overview]
Message-ID: <874jknqnjd.fsf@gnu.org> (raw)
In-Reply-To: <878r9zqyto.fsf@gnu.org>

Tassilo Horn <tsdh@gnu.org> writes:

> When emacs runs with -batch, user-init-file is nil and my system-update
> script contains an emacs package update step running
>
>   emacs -batch -l ~/.emacs.d/init.el -f package-upgrade-all
>
>> FWIW my init.el starts with
>>
>>   (load (setq custom-file (locate-user-emacs-file "custom.el")) t)
>>
>> and I have never had issues with it.
>
> I'll try if that also works with -batch.  Thanks!

Yup, that seems to work just as well.

>> I have little to no experience with use-package, so I am not the best
>> person to help here.  Have you reported this behaviour as a bug?
>
> Not yet but I'll do so.

Well, I cannot reproduce the issue from a fresh start, that is, after
deleting ~/.emacs.d/elpa/ and ~/.emacs.d/custom.el.  When I start emacs
then, all packages of (use-package ... :ensure t) recipes are installed.
When I restart emacs, package-selected-packages looks good and
package-autoremove doesn't suggest anything.

But I was in the "package-autoremove suggests use-package-installed
packages" situations many times.  Not sure how I ended up there.

Anyway, as long as I cannot reproduce the issue, I won't report a bug.
David, can you reproduce the issue?

BTW: When trying around with a minimal init.el on a testuser account, I
found the small issue that package-delete-ing the very last installed
package will keep it in package-selected-packages because
package--save-selected-packages doesn't save when the optional argument
"value" is nil.  Of course, an optional argument can be nil if not
provided or nil when the given arguments values is nil...

Bye,
Tassilo



  reply	other threads:[~2023-08-25 12:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22  4:00 package-autoremove ? David Masterson
2023-08-22 12:17 ` Rudolf Schlatte
2023-08-25  4:52   ` David Masterson
2023-08-25  7:38     ` Philip Kaludercic
2023-08-25  8:40       ` Tassilo Horn
2023-08-25  8:54         ` Philip Kaludercic
2023-08-25  8:56           ` Tassilo Horn
2023-08-25 12:58             ` Tassilo Horn [this message]
2023-08-26  2:01               ` David Masterson
2023-08-26  1:50       ` David Masterson
2023-08-26 12:03         ` Philip Kaludercic
  -- strict thread matches above, loose matches on Subject: below --
2020-09-03  4:35 David Masterson
2020-09-03  6:38 ` Pankaj Jangid

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

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

  git send-email \
    --in-reply-to=874jknqnjd.fsf@gnu.org \
    --to=tsdh@gnu.org \
    --cc=dsmasterson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=philipk@posteo.net \
    --cc=rudi@constantly.at \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.