Skip to content

package-selected-packages is void on first usage #454

@mcba

Description

@mcba

Operating System

Linux/BSD

Additional Operating System information

No response

Emacs Version

30

Emacs Configuration Details

  • Native Compilation
  • pGTK
  • alternative package manager (use-package, straight.el, ...)

Anything else that may be related to the issue you're having?

What happened?

On a completely new emacs installation, and with the example crafted-emacs entry for init.el and no custom.el, emacs gives a void-variable error for package-selected-packages.

A workaround is to initialise package-selected-packages with something, e.g.,

(custom-set-variables
'(package-selected-packages
'(aggressive-indent)))

and then run M-x package-install-selected-packages to initialise things.

What should have happened?

crafted-emacs should check if package-selected-packages is void, and take appropriate action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions