help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: package-autoremove ?


From: Tassilo Horn
Subject: Re: package-autoremove ?
Date: Fri, 25 Aug 2023 10:56:20 +0200
User-agent: mu4e 1.11.15; emacs 30.0.50

Philip Kaludercic <philipk@posteo.net> writes:

Hi Philip,

>> (setopt custom-file (expand-file-name
>>                      "custom.el"
>>                      (if user-init-file
>>                          (file-name-directory user-init-file)
>>                        "~/.emacs.d/")))
>
> What is the point of this check?

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!

>> (load custom-file t)
>
>> Now on two machines which should have pretty much the same emacs setup
>> (pretty current git master with the same init.el containing the same
>> use-package with :ensure t statements), package-autoremove suggests
>> different removal sets.  The union of both sets contains many packages
>> installed by use-package which are certainly wrong.
>
> 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.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]