[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13625: closed (24.1; Enable 'package-menu-execute

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13625: closed (24.1; Enable 'package-menu-execute being non-interactive)
Date: Wed, 13 Feb 2013 05:03:03 +0000

Your message dated Wed, 13 Feb 2013 00:01:26 -0500
with message-id <address@hidden>
and subject line Re: bug#13625: 24.1; Enable 'package-menu-execute being 
has caused the debbugs.gnu.org bug report #13625,
regarding 24.1; Enable 'package-menu-execute being non-interactive
to be marked as done.

(If you believe you have received this mail in error, please contact

13625: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13625
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.1; Enable 'package-menu-execute being non-interactive Date: Mon, 04 Feb 2013 00:49:08 +0100

I was trying to make a little program to upgrade automatically my
packages archives. Basically something looking like that:

  (with-current-buffer "*Packages*"

The 'package-menu-execute implementation relies on the user to,
interactively, answer yes-or-no to a question asking him to confirm
he wants to upgrade the packages needing an upgrade.

Well, from my point of view the implementation must be silent when
called non interactively. And proceed with the packages upgrades.

Here is a modification that I made that suit my needs:

(defun package-menu-execute ()
    (when install-list
      (if (or
           (not (called-interactively-p 'any))
    ;; Delete packages, prompting if necessary.
    (when delete-list
      (if (or
           (not (called-interactively-p 'any))

Then, first, I am a newbie in Emacs Lisp modifications. Secondly, the
changelog suggests that package.el has not been modified for a while
ago. Since I could not believe I would be the first needing that
modification in five years, I guess that I maybe wrong somewhere, and
that there must be an easier way to perform what I am trying to do. Then
my question is basically what is a correct behavior according to you and
is my "solution" acceptable?


--- End Message ---
--- Begin Message --- Subject: Re: bug#13625: 24.1; Enable 'package-menu-execute being non-interactive Date: Wed, 13 Feb 2013 00:01:26 -0500 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.4

Thanks; applied.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]