From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: package-autoremove ? Date: Fri, 25 Aug 2023 14:58:19 +0200 Message-ID: <874jknqnjd.fsf@gnu.org> References: <87cyzbtvv8.fsf@posteo.net> <87cyzbqzbm.fsf@gnu.org> <87wmxjsdrf.fsf@posteo.net> <878r9zqyto.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11505"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.15; emacs 30.0.50 To: Philip Kaludercic , David Masterson , Rudolf Schlatte , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 15:07:25 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZWX6-0002ki-LP for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 15:07:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZWWQ-00012b-2H; Fri, 25 Aug 2023 09:06:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZWWN-00010s-Ox for help-gnu-emacs@gnu.org; Fri, 25 Aug 2023 09:06:40 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZWWL-0006Y1-H7; Fri, 25 Aug 2023 09:06:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=6gqLoqV73wJv/6x3KF1yyd/IGxZTw8LzPxqF+8eVjm4=; b=DmB7zeJ85YM567 SdfiGChhGMVbIuTEQVa0CEj9Mydzb8z//AkzBXzcHNZ5q+XDZcYRHBVG5FOXWUPLBumXVyxSKzn2B Pgrqn8jDSxdJ7OzojUtb04ZslT/oD6Ra1+mpc2O8e8Gui8v9/MYNM2ZxhZ1UeUEj6LfTdrkJOK6g+ /dcVqhYmc2BOC413DZbXOjJfqW7ebM6u9vOMBzFujGbAndyBOldJaK+tOh9dj831suQZYvW/oirMb SA3CDEYHPy6hLkpA3Gf9Ic/lhVVZGk+rEKhjehDJ0ciQfCPYU8uy7w0QLUmiL2R6DieXo3YjsfdJr Popfb8/BmW0wKBRROL5w==; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvkedgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepve evieekteekveeigfefffeivdetgeduvdffueeuudevgedttdehvdfhueevfffhnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomh gvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdel kedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ib2b94485:Fastmail In-reply-to: <878r9zqyto.fsf@gnu.org> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:144962 Archived-At: Tassilo Horn 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