From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: package-autoremove (was: Package installation messages) Date: Thu, 21 May 2015 17:11:16 +0100 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1432224691 10220 80.91.229.3 (21 May 2015 16:11:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 16:11:31 +0000 (UTC) Cc: emacs-devel To: Kaushal Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 21 18:11:30 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YvT4A-0002pf-LK for ged-emacs-devel@m.gmane.org; Thu, 21 May 2015 18:11:26 +0200 Original-Received: from localhost ([::1]:58499 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvT49-0003h3-ML for ged-emacs-devel@m.gmane.org; Thu, 21 May 2015 12:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvT45-0003gx-FI for emacs-devel@gnu.org; Thu, 21 May 2015 12:11:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvT41-00010v-Fm for emacs-devel@gnu.org; Thu, 21 May 2015 12:11:21 -0400 Original-Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:36456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvT41-00010p-6k for emacs-devel@gnu.org; Thu, 21 May 2015 12:11:17 -0400 Original-Received: by lagv1 with SMTP id v1so106900761lag.3 for ; Thu, 21 May 2015 09:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=ONGLI+h1/Eh1bCRqTuLuE2AHK3xtDa7EHC0URRG9wzU=; b=SSXa3G0FR6T8Ejka9W5Mhr8ayWfF94TX7OML4WmS97apfvnK4eDQtVEZwiKwfjkUG/ qq8ggGrq/7afL4aHPazSFVd031KpkyXVNNHUP9QlOihvt19CmeBbcx4w1PbGiLP47NLG G8xqe/Kwx0uaZsGIozy/za2mwY0ngJrpKyb9gt0hn248YwS64qUFUUBpFPQ8Gq6uL2D9 lMB+p031ZNuQNQEDoTs8klphom/U/+9OstApMMYp9+aZi1epXeNBcJ11Hu8j90BY4MNJ 49QwuTb7g6Z6RU/DP44jk86JQ7Xc6e/TXEkz+/4xChbjmK4ri+gyT8YSdoInvJ/lV4kn v+Mg== X-Received: by 10.112.50.74 with SMTP id a10mr2906219lbo.4.1432224676516; Thu, 21 May 2015 09:11:16 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Thu, 21 May 2015 09:11:16 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: i8HElpGKHDYR2t4kbNxw0Wxm1qI X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186708 Archived-At: Then it sounds like we have a bug. I think I introduced it when reverting the async stuff. I just pushed a fix, could you try again with the latest master? 2015-05-21 16:06 GMT+01:00 Kaushal : > About 2) the use-package forms happen after I load custom-file. > > I just manually deleted those 3 packages and reinstalled them from the > package manager and then M-x package-autoremove displayed "Nothing to > autoremove". But I noticed that that process did not update the > package-selected-packages to the custom.el. I had to manually eval > > (package--save-selected-packages (package--find-non-dependencies)) > > in order to update the custom.el > > Before that, of course, after each emacs restart, package.el was trying to > autoremove those 3 packages. > > On Thu, May 21, 2015 at 10:58 AM Artur Malabarba > wrote: >> >> 2015-05-21 15:35 GMT+01:00 Kaushal : >> > I just updated to the latest commit on emacs master and tried out >> > package-autoremove. >> > >> > That suggested removing 3 packages (symon, minibuffer-line, >> > git-timemachine), out of which I actually use 2: minibuffer-line, >> > git-timemachine. >> > >> > For example, I have this in my init: >> > >> > ;; Display date+time in the minibuffer instead of in the mode-line >> > (use-package minibuffer-line >> >> There are two possibilities for why this happened. >> >> 1. The first time you start Emacs after the commit that introduced >> selected-packages, package.el will try to guess which of your packages >> were explicitly installed by you, and which were pulled in as deps. >> It's impossible to know for sure, so this guessing is bound to go >> wrong on some instances. >> >> 2. The list of selected packages is stored with your >> custom-set-variables. So, if your `use-package' form comes before your >> `custom-set-variables', then that might cause it to not get stored >> correctly. >> >> I'm not sure if there's a global fix we can do for case 2. Either way, >> you (the user) can manually fix that by simply trying to install the >> package you already have (`minibuffer-line', in this case). You can do >> that from the package menu or with `M-x package-install'. You'll get a >> message that "package already installed", and then package.el will >> store this package in your list of `selected-packages'. >> Another way to fix that is to `M-x customize-variable RET >> package-selected-packages' and manually add `minibuffer-line' to it.