GNU bug report logs -
#63563
29.0.91; package.el should not install unselected packages
Previous Next
Reported by: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
Date: Thu, 18 May 2023 02:11:01 UTC
Severity: normal
Tags: notabug
Found in version 29.0.91
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 63563 in the body.
You can then email your comments to 63563 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Thu, 18 May 2023 02:11:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 18 May 2023 02:11:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Reproduction:
1. M-x list-packages
2. Press x on a line
3. Observer in the echo area package.el is now asking the user to
whether to install the package.
Expectation:
If the user has not pressed i to select the package for installation,
package.el should not ask the user to confirm anything. There's no
action to execute. This is unexpected dwim behavior.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Thu, 18 May 2023 05:46:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 63563 <at> debbugs.gnu.org (full text, mbox):
tags 63563 notabug
thanks
> From: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
> Date: Thu, 18 May 2023 03:10:23 +0100
>
> 1. M-x list-packages
> 2. Press x on a line
> 3. Observer in the echo area package.el is now asking the user to
> whether to install the package.
>
> Expectation:
>
> If the user has not pressed i to select the package for installation,
> package.el should not ask the user to confirm anything. There's no
> action to execute. This is unexpected dwim behavior.
From the Emacs manual:
‘x’
Download and install all packages marked with ‘i’, and their
dependencies; also, delete all packages marked with ‘d’
(‘package-menu-execute’). This also removes the marks. If no
packages are marked, this command will install the package under
point (if it isn’t installed already), or delete the package under
point (if it’s already installed).
The doc string says similar stuff:
If no packages are marked, the action taken depends on the state
of the package under point. If it’s not already installed, this
command will install the package, and if it’s installed, it will
delete the package.
So this is documented behavior. This is not a bug, but a feature.
Added tag(s) notabug.
Request was from
Eli Zaretskii <eliz <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 18 May 2023 05:46:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Thu, 18 May 2023 19:54:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 63563 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> tags 63563 notabug
> thanks
>
>> From: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
>> Date: Thu, 18 May 2023 03:10:23 +0100
>>
>> 1. M-x list-packages
>> 2. Press x on a line
>> 3. Observer in the echo area package.el is now asking the user to
>> whether to install the package.
>>
>> Expectation:
>>
>> If the user has not pressed i to select the package for installation,
>> package.el should not ask the user to confirm anything. There's no
>> action to execute. This is unexpected dwim behavior.
>
>>From the Emacs manual:
>
> ‘x’
> Download and install all packages marked with ‘i’, and their
> dependencies; also, delete all packages marked with ‘d’
> (‘package-menu-execute’). This also removes the marks. If no
> packages are marked, this command will install the package under
> point (if it isn’t installed already), or delete the package under
> point (if it’s already installed).
>
> The doc string says similar stuff:
>
> If no packages are marked, the action taken depends on the state
> of the package under point. If it’s not already installed, this
> command will install the package, and if it’s installed, it will
> delete the package.
>
> So this is documented behavior. This is not a bug, but a feature.
That being said, I am not a fan of this DWIM-ish behaviour either.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Mon, 29 May 2023 00:52:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 63563 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Is this new behavior no one asked for configurable? Over the many years
I've been using package.el, I've built in muscle memory. After M-x
list-packages, when the packages buffer is done refreshing, I immediately
press U and x without looking. With the new behavior, when there's
no upgrades, I'd be installing the first package at point. Doing that a
couple of times will mean I'll have a couple of extra packages I don't want
installed.
Jimmy
On Thu, May 18, 2023 at 8:53 PM Philip Kaludercic <philipk <at> posteo.net>
wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > tags 63563 notabug
> > thanks
> >
> >> From: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
> >> Date: Thu, 18 May 2023 03:10:23 +0100
> >>
> >> 1. M-x list-packages
> >> 2. Press x on a line
> >> 3. Observer in the echo area package.el is now asking the user to
> >> whether to install the package.
> >>
> >> Expectation:
> >>
> >> If the user has not pressed i to select the package for installation,
> >> package.el should not ask the user to confirm anything. There's no
> >> action to execute. This is unexpected dwim behavior.
> >
> >>From the Emacs manual:
> >
> > ‘x’
> > Download and install all packages marked with ‘i’, and their
> > dependencies; also, delete all packages marked with ‘d’
> > (‘package-menu-execute’). This also removes the marks. If no
> > packages are marked, this command will install the package under
> > point (if it isn’t installed already), or delete the package under
> > point (if it’s already installed).
> >
> > The doc string says similar stuff:
> >
> > If no packages are marked, the action taken depends on the state
> > of the package under point. If it’s not already installed, this
> > command will install the package, and if it’s installed, it will
> > delete the package.
> >
> > So this is documented behavior. This is not a bug, but a feature.
>
> That being said, I am not a fan of this DWIM-ish behaviour either.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Mon, 29 May 2023 13:48:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 63563 <at> debbugs.gnu.org (full text, mbox):
> From: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
> Date: Mon, 29 May 2023 01:51:11 +0100
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 63563 <at> debbugs.gnu.org
>
> Is this new behavior no one asked for configurable? Over the many years I've been using package.el,
> I've built in muscle memory. After M-x list-packages, when the packages buffer is done refreshing, I
> immediately press U and x without looking. With the new behavior, when there's no upgrades, I'd be
> installing the first package at point. Doing that a couple of times will mean I'll have a couple of extra
> packages I don't want installed.
It turns out this behavior is new in Emacs 29, see bug#40457 and NEWS.
Since the new behavior is incompatible with the old one, I have now
added a new user option, package-menu-use-current-if-no-marks, to get
back the old behavior, and mentioned it in NEWS. You can now
customize that option to a nil value to get what you want.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Mon, 29 May 2023 13:59:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 63563 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thank you so much!
On 29 May 2023 at 2:47 PM +0100, Eli Zaretskii <eliz <at> gnu.org>, wrote:
> > From: Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
> > Date: Mon, 29 May 2023 01:51:11 +0100
> > Cc: Eli Zaretskii <eliz <at> gnu.org>, 63563 <at> debbugs.gnu.org
> >
> > Is this new behavior no one asked for configurable? Over the many years I've been using package.el,
> > I've built in muscle memory. After M-x list-packages, when the packages buffer is done refreshing, I
> > immediately press U and x without looking. With the new behavior, when there's no upgrades, I'd be
> > installing the first package at point. Doing that a couple of times will mean I'll have a couple of extra
> > packages I don't want installed.
>
> It turns out this behavior is new in Emacs 29, see bug#40457 and NEWS.
> Since the new behavior is incompatible with the old one, I have now
> added a new user option, package-menu-use-current-if-no-marks, to get
> back the old behavior, and mentioned it in NEWS. You can now
> customize that option to a nil value to get what you want.
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Mon, 29 May 2023 14:00:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jimmy Yuen Ho Wong <wyuenho <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 29 May 2023 14:00:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 63563-done <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 29 May 2023 14:57:45 +0100
> From: Jimmy Wong <wyuenho <at> gmail.com>
> Cc: philipk <at> posteo.net, 63563 <at> debbugs.gnu.org
>
> Thank you so much!
Thanks, I take it that you have tried using this new option, and you
are satisfied. So I'm closing this bug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Thu, 01 Jun 2023 16:37:02 GMT)
Full text and
rfc822 format available.
Message #30 received at submit <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> It turns out this behavior is new in Emacs 29, see bug#40457 and NEWS.
> Since the new behavior is incompatible with the old one, I have now
> added a new user option, package-menu-use-current-if-no-marks, to get
> back the old behavior, and mentioned it in NEWS. You can now
> customize that option to a nil value to get what you want.
Should the default value of
package-menu-use-current-if-no-marks be nil?
That would follow the convention of old behavior being
unchanged unless the user does something to enable the new
behavior.
--
Howard
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#63563
; Package
emacs
.
(Thu, 01 Jun 2023 18:30:02 GMT)
Full text and
rfc822 format available.
Message #33 received at 63563 <at> debbugs.gnu.org (full text, mbox):
> From: Howard Melman <hmelman <at> gmail.com>
> Date: Thu, 01 Jun 2023 12:36:28 -0400
>
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > It turns out this behavior is new in Emacs 29, see bug#40457 and NEWS.
> > Since the new behavior is incompatible with the old one, I have now
> > added a new user option, package-menu-use-current-if-no-marks, to get
> > back the old behavior, and mentioned it in NEWS. You can now
> > customize that option to a nil value to get what you want.
>
> Should the default value of
> package-menu-use-current-if-no-marks be nil?
>
> That would follow the convention of old behavior being
> unchanged unless the user does something to enable the new
> behavior.
The discussion about that should have happened a year ago, when this
change was made. Since it haven't, we cannot just undo what's been
done a year ago and didn't receive any complaints until now. Sorry,
we will have to make do with at least the possibility to go back to
the old behavior.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 30 Jun 2023 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 316 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.