From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Newsgroups: gmane.emacs.devel Subject: Re: package-autoremove (was: Package installation messages) Date: Thu, 21 May 2015 15:06:23 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113bcfa00a5a3c051698e3ac X-Trace: ger.gmane.org 1432220797 28269 80.91.229.3 (21 May 2015 15:06:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 15:06:37 +0000 (UTC) Cc: emacs-devel To: bruce.connor.am@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 21 17:06:37 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 1YvS3P-0002mR-0p for ged-emacs-devel@m.gmane.org; Thu, 21 May 2015 17:06:35 +0200 Original-Received: from localhost ([::1]:58197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvS3O-0007W6-4K for ged-emacs-devel@m.gmane.org; Thu, 21 May 2015 11:06:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvS3F-0007W0-FM for emacs-devel@gnu.org; Thu, 21 May 2015 11:06:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvS3E-0002J7-2E for emacs-devel@gnu.org; Thu, 21 May 2015 11:06:25 -0400 Original-Received: from mail-yh0-x22c.google.com ([2607:f8b0:4002:c01::22c]:36467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvS3D-0002J1-SP for emacs-devel@gnu.org; Thu, 21 May 2015 11:06:23 -0400 Original-Received: by yhrr66 with SMTP id r66so21767498yhr.3 for ; Thu, 21 May 2015 08:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=l6WknYQA/ygB+v/1NAbmiAMYBp4IRXLjK/L7HQg08AA=; b=i8jR8u+8I7RDaiZ516yFJWG0KnDmncmWF4CfPITvw29HEpjQzHhWycrxCAtlwjIuiJ iEpdB2jrLayJRNcMZZgQwyaGaMUiN6VY+Uyn12B/CsR/tLk3IjrQHjroHAGgyrnzG8yt XFm4tFKeZO94XRC295B0V8x2dQytEUmpDvpghXCu2RUJIGELiRkG6v5Xdcma4pa+puez Pd+PgcEIKduuxa+MQ6MlcxzqliTJpWmIfokp93phdMUnEUf49+XnM//lJg7IL9f1WiLz WM8FbVegbeKmlmv6hJco5eTjFtqcEr0yjwsk1gxshGu65Mrxmi83t0dBqWveL0PUTsEk gQ+A== X-Received: by 10.170.215.69 with SMTP id h66mr3478795ykf.74.1432220783497; Thu, 21 May 2015 08:06:23 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22c 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:186705 Archived-At: --001a113bcfa00a5a3c051698e3ac Content-Type: text/plain; charset=ISO-8859-1 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. > --001a113bcfa00a5a3c051698e3ac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
About 2) the use-package forms happen after I load cu= stom-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 proces= s did not update the package-selected-packages to the custom.el. I had to m= anually eval

(package--save-selected-packages (packa= ge--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.
<= /div>
On Thu, May 21, 2015 at 10:58 AM Artur = Malabarba <bruce.connor.am@= gmail.com> wrote:
2015-05-21 15:35= GMT+01:00 Kaushal <kaushal.modi@gmail.com>:
> 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<= br> `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 w= ay,
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<= br> that from the package menu or with `M-x package-install'. You'll ge= t a
message that "package already installed", and then package.el wil= l
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= .
--001a113bcfa00a5a3c051698e3ac--