unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kaushal <kaushal.modi@gmail.com>
To: bruce.connor.am@gmail.com
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: package-autoremove (was: Package installation messages)
Date: Thu, 21 May 2015 15:06:23 +0000	[thread overview]
Message-ID: <CAFyQvY271YLONvQTQs5ZJk74d2i+erV4TzQt0SeNRK5K+_CqLg@mail.gmail.com> (raw)
In-Reply-To: <CAAdUY-K-izJbxb1BvMAWdnKCU1PbJp42wN1JJdGdiw9Sj5brDw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2227 bytes --]

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 <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
> `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.
>

[-- Attachment #2: Type: text/html, Size: 2824 bytes --]

  reply	other threads:[~2015-05-21 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 14:58 package-autoremove (was: Package installation messages) Artur Malabarba
2015-05-21 15:06 ` Kaushal [this message]
2015-05-21 16:11   ` Artur Malabarba
2015-05-21 17:01     ` Kaushal
2015-05-21 18:05       ` Artur Malabarba
2015-05-21 18:18         ` Kaushal
2015-05-21 19:23           ` Artur Malabarba
2015-05-21 20:18             ` Kaushal
2015-05-21 20:24               ` Artur Malabarba
2015-05-21 20:30                 ` Artur Malabarba
2015-05-21 20:39                   ` Kaushal

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAFyQvY271YLONvQTQs5ZJk74d2i+erV4TzQt0SeNRK5K+_CqLg@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).