all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed
@ 2023-08-04 15:15 Raoul Comninos
  2023-08-04 16:16 ` Yuan Fu
  2023-08-04 17:08 ` Jim Porter
  0 siblings, 2 replies; 6+ messages in thread
From: Raoul Comninos @ 2023-08-04 15:15 UTC (permalink / raw)
  To: 65053

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

I am encountering a peculiar issue with Emacs's package management system
where it is falsely recommending the removal of packages that I have
explicitly installed via package-install. One such example is the
markdown-mode package.

I have installed the affected packages explicitly using M-x
package-install, so they are not dependencies.

I am using Emacs's built-in package.el for package management.

This behaviour is consistent and affects packages that I want to keep.

The recommendation for removal occurs when I go to the list of packages
(M-x list-packages) and press capital "U" to update packages. Emacs then
prompts me to update the packages and recommends certain packages for
removal, even though I want to keep them.

I have checked the usual scenarios such as package dependencies and made
sure I am using the correct installation method. I am unable to identify
why this is happening.

This thread provides a workaround but does not explain why the package is
excluded or indicate that it is a problem that will be rectified:

How does package-autoremove decide which packages to remove?

Why is Emacs recommending the removal of these explicitly installed
packages, and is this behaviour which I have observed for a long time going
to be fixed?

Emacs Version: 30

Any insights or guidance on this issue would be greatly appreciated!

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed
  2023-08-04 15:15 bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed Raoul Comninos
@ 2023-08-04 16:16 ` Yuan Fu
  2023-08-04 17:08 ` Jim Porter
  1 sibling, 0 replies; 6+ messages in thread
From: Yuan Fu @ 2023-08-04 16:16 UTC (permalink / raw)
  To: Raoul Comninos; +Cc: 65053



> On Aug 4, 2023, at 8:15 AM, Raoul Comninos <revcomninos@gmail.com> wrote:
> 
> I am encountering a peculiar issue with Emacs's package management system where it is falsely recommending the removal of packages that I have explicitly installed via package-install. One such example is the markdown-mode package.
> I have installed the affected packages explicitly using M-x package-install, so they are not dependencies.
> I am using Emacs's built-in package.el for package management.
> This behaviour is consistent and affects packages that I want to keep.
> The recommendation for removal occurs when I go to the list of packages (M-x list-packages) and press capital "U" to update packages. Emacs then prompts me to update the packages and recommends certain packages for removal, even though I want to keep them.
> I have checked the usual scenarios such as package dependencies and made sure I am using the correct installation method. I am unable to identify why this is happening.
> This thread provides a workaround but does not explain why the package is excluded or indicate that it is a problem that will be rectified:
> How does package-autoremove decide which packages to remove?
> Why is Emacs recommending the removal of these explicitly installed packages, and is this behaviour which I have observed for a long time going to be fixed?
> Emacs Version: 30
> Any insights or guidance on this issue would be greatly appreciated!

It could be that package.el is merely suggesting you to remove the old version of these packages, when you update some packages and the new versions are installed.

Yuan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed
  2023-08-04 15:15 bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed Raoul Comninos
  2023-08-04 16:16 ` Yuan Fu
@ 2023-08-04 17:08 ` Jim Porter
  2023-08-05  3:34   ` Raoul Comninos
  1 sibling, 1 reply; 6+ messages in thread
From: Jim Porter @ 2023-08-04 17:08 UTC (permalink / raw)
  To: Raoul Comninos, 65053

On 8/4/2023 8:15 AM, Raoul Comninos wrote:
> I am encountering a peculiar issue with Emacs's package management 
> system where it is falsely recommending the removal of packages that I 
> have explicitly installed via package-install. One such example is the 
> markdown-mode package.
> 
> I have installed the affected packages explicitly using M-x 
> package-install, so they are not dependencies.

Emacs considers a package to be explicitly installed if (and only if, I 
think) it's listed in 'package-selected-packages'. Make sure the value 
of this variable is what you expect. If it's not, make sure your 
configuration is loading variables that were set by the Customize 
interface; when installing packages interactively, 
'package-selected-packages' is set via the Customize code.

> How does package-autoremove decide which packages to remove?

'package-autoremove' will remove a package if a) it's not in 
'package-selected-packages' and b) nothing else in 
'package-selected-packages' depends on it.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed
  2023-08-04 17:08 ` Jim Porter
@ 2023-08-05  3:34   ` Raoul Comninos
  2023-08-05  6:01     ` Jim Porter
  0 siblings, 1 reply; 6+ messages in thread
From: Raoul Comninos @ 2023-08-05  3:34 UTC (permalink / raw)
  To: Jim Porter; +Cc: 65053

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

I have checked the variable and it was missing markdown-mode and included a
few packages I had removed. I have tweaked it, and removed and reinstalled
a few packages to align the variable with what is installed in elpa in dot
emacs. The problem occurs on multiple systems in Linux and Windows.

On Fri, 4 Aug 2023 at 19:08, Jim Porter <jporterbugs@gmail.com> wrote:

> On 8/4/2023 8:15 AM, Raoul Comninos wrote:
> > I am encountering a peculiar issue with Emacs's package management
> > system where it is falsely recommending the removal of packages that I
> > have explicitly installed via package-install. One such example is the
> > markdown-mode package.
> >
> > I have installed the affected packages explicitly using M-x
> > package-install, so they are not dependencies.
>
> Emacs considers a package to be explicitly installed if (and only if, I
> think) it's listed in 'package-selected-packages'. Make sure the value
> of this variable is what you expect. If it's not, make sure your
> configuration is loading variables that were set by the Customize
> interface; when installing packages interactively,
> 'package-selected-packages' is set via the Customize code.
>
> > How does package-autoremove decide which packages to remove?
>
> 'package-autoremove' will remove a package if a) it's not in
> 'package-selected-packages' and b) nothing else in
> 'package-selected-packages' depends on it.
>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed
  2023-08-05  3:34   ` Raoul Comninos
@ 2023-08-05  6:01     ` Jim Porter
  2023-08-05  7:05       ` Raoul Comninos
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Porter @ 2023-08-05  6:01 UTC (permalink / raw)
  To: Raoul Comninos; +Cc: 65053

On 8/4/2023 8:34 PM, Raoul Comninos wrote:
> I have checked the variable and it was missing markdown-mode and 
> included a few packages I had removed. I have tweaked it, and removed 
> and reinstalled a few packages to align the variable with what is 
> installed in elpa in dot emacs. The problem occurs on multiple systems 
> in Linux and Windows.

Did that fix this issue? It sounds like maybe your configuration is 
under version control and something got out of sync?

I've also occasionally seen issues where if a package fails to install, 
it gets removed from 'package-select-packages', but I haven't been able 
to reproduce it. I think that's covered by bug#64995 though.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed
  2023-08-05  6:01     ` Jim Porter
@ 2023-08-05  7:05       ` Raoul Comninos
  0 siblings, 0 replies; 6+ messages in thread
From: Raoul Comninos @ 2023-08-05  7:05 UTC (permalink / raw)
  To: Jim Porter; +Cc: 65053

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

> Did that fix this issue? It sounds like maybe your configuration is
> under version control and something got out of sync?

It's a bandage, but I don't think it resolves the issue or explains why it
happens.

No version control.

> I've also occasionally seen issues where if a package fails to install,
> it gets removed from 'package-select-packages', but I haven't been able
> to reproduce it. I think that's covered by bug#64995 though.

The issue in my case is unrelated to imcomplete installations.

On Sat, 5 Aug 2023 at 08:01, Jim Porter <jporterbugs@gmail.com> wrote:

> On 8/4/2023 8:34 PM, Raoul Comninos wrote:
> > I have checked the variable and it was missing markdown-mode and
> > included a few packages I had removed. I have tweaked it, and removed
> > and reinstalled a few packages to align the variable with what is
> > installed in elpa in dot emacs. The problem occurs on multiple systems
> > in Linux and Windows.
>
> Did that fix this issue? It sounds like maybe your configuration is
> under version control and something got out of sync?
>
> I've also occasionally seen issues where if a package fails to install,
> it gets removed from 'package-select-packages', but I haven't been able
> to reproduce it. I think that's covered by bug#64995 though.
>

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-05  7:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-04 15:15 bug#65053: 30.0.50; Emacs falsely recommends removal of explicitly installed Raoul Comninos
2023-08-04 16:16 ` Yuan Fu
2023-08-04 17:08 ` Jim Porter
2023-08-05  3:34   ` Raoul Comninos
2023-08-05  6:01     ` Jim Porter
2023-08-05  7:05       ` Raoul Comninos

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.