GNU bug report logs - #13625
24.1; Enable 'package-menu-execute being non-interactive

Previous Next

Package: emacs;

Reported by: Yves Baumes <ybaumes <at> gmail.com>

Date: Mon, 4 Feb 2013 00:20:02 UTC

Severity: normal

Found in version 24.1

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Yves Baumes <ybaumes <at> gmail.com>
Cc: 13625 <at> debbugs.gnu.org
Subject: bug#13625: 24.1; Enable 'package-menu-execute being non-interactive
Date: Mon, 04 Feb 2013 14:44:54 -0500
> I've found that whatever you do, an interactive call provide a numeric
> value of '1'.  Reading the Emacs Lisp Reference Manual, I didn't find
> a way to negate the boolean value with `interactive'.

But since it's an optional parameter, you can just not provide it, in
which case it defaults to nil.

> -(defun package-menu-execute ()
> +(defun package-menu-execute (&optional prompt-user)
                                          ^^^^^^^^^^^
                                          dont-query

>    "Perform marked Package Menu actions.
>  Packages marked for installation are downloaded and installed;
>  packages marked for deletion are removed."
> -  (interactive)
> +  (interactive "p")

Leave it as (interactive) which will not provide any argument, so
dont-query will be nil for interactive calls. And for your own calls,
you can pass a non-nil argument.


        Stefan




This bug report was last modified 12 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.