all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mark Karpov <markkarpov@openmailbox.org>
To: bruce.connor.am@gmail.com, 20817@debbugs.gnu.org
Subject: bug#20817: 25.0.50; Problems with upgrading of packages
Date: Thu, 18 Jun 2015 21:23:17 +0600	[thread overview]
Message-ID: <87egl959cq.fsf@openmailbox.org> (raw)
In-Reply-To: <CAAdUY-LJvPLbEnOETOB9+hxCuhDHicg8TGu8kELZvOFY5CUvTA@mail.gmail.com> (Artur Malabarba's message of "Thu, 18 Jun 2015 16:07:15 +0100")


I have this advice, but I don't see how it can cause any problem:

(defun pkgi-filter-args (pkg &optional _dont-select)
  "How to filter arguments of `package-install' command.
PKG is passed to the command, while DONT-SELECT is always T, so
one can select any packages only by manually adding them to
`package-selected-packages' variable."
  (list pkg t))

(advice-add 'package-install :filter-args #'pkgi-filter-args)

Try to evaluate the code and I've posted previously plus these lines.

Note that I've tried to upgrade packages evaluating only code that I've
already posted (without the advice). It worked! Bad news are that I'm
now unable to test this behavior anymore until there are new versions of
some packages on MELPA (it's impossible to revert to older builds
AFAIK).





  reply	other threads:[~2015-06-18 15:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 11:55 bug#20817: 25.0.50; Problems with upgrading of packages Mark Karpov
2015-06-17 16:01 ` Artur Malabarba
2015-06-18  6:54 ` Mark Karpov
2015-06-18 12:50   ` Artur Malabarba
2015-06-18 13:29 ` Mark Karpov
2015-06-18 13:31 ` bruce.connor.am
2015-06-18 13:51   ` Mark Karpov
2015-06-18 14:05     ` bruce.connor.am
2015-06-18 14:21       ` Mark Karpov
2015-06-18 15:07         ` Artur Malabarba
2015-06-18 15:23           ` Mark Karpov [this message]
2015-06-18 15:41             ` Artur Malabarba
2015-06-18 15:58               ` Mark Karpov
2015-06-18 17:26                 ` Artur Malabarba
2015-06-18 17:34                   ` Mark Karpov
2015-06-18 17:59                     ` Artur Malabarba

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

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

  git send-email \
    --in-reply-to=87egl959cq.fsf@openmailbox.org \
    --to=markkarpov@openmailbox.org \
    --cc=20817@debbugs.gnu.org \
    --cc=bruce.connor.am@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.