Subject: Re: bug#56639: 29.0.50; Encounter void-function loaddefs-generate

From: Stefan Kangas <[email-masked]>
Date: Mon, 25 Jul 2022 14:07:30 +0200

[Please keep the bug email in Cc so that your message is recorded in
the bug tracker.]

Jen-Chieh Shen <[email-masked]> writes:
>
> It seems like my last email did not get sent, so let me try again!
>
> > Do you have a recipe to reproduce this, preferably starting from "emacs -Q"?
>
> I have tried with "emacs -Q" and yes I have the same result.
>
> Step to reproduce this, (on Windows machine)
>
> 1. Download the Emacs installer from https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-29/emacs-29.0.50-snapshot-2022-07-18-installer.exe
> 2. Install it!
> 3. Open up with emacs -Q
> 4. M-x package-list-packages
> 5. You should encounter another bug, backtrace below:
>
> Debugger entered--Lisp error: (void-function header-line-indent-mode)
>   header-line-indent-mode()
>   tabulated-list-mode()
>   package-menu-mode()
>   package-list-packages(nil)
>   funcall-interactively(package-list-packages nil)
>   command-execute(package-list-packages record)
>   execute-extended-command(nil "package-list-packages" "package-list-packages")
>   funcall-interactively(execute-extended-command nil "package-list-packages" "package-list-packages")
>   command-execute(execute-extended-command)
>
> 6. M-x display-line-numbers-mode to resolve previous error
> 7. Try M-x package-list-packages once again (you should able to enter the *Packages* this time)
> 8. Select a package with key "i"
> 9. Hit "x" to execute, then "yes" to confirm
> 10. The package is installed but with the (void-function loaddefs-generate) error afterward
>
> Very strange... :/
>
> > Could you `M-x toggle-debug-on-error', try again and post the resulting
> backtrace?
>
> Here is the backtrace,
>
> Debugger entered--Lisp error: (void-function loaddefs-generate)
>   loaddefs-generate("c:/Users/JenChieh/AppData/Roaming/.emacs.d/elpa/co..." "c:/Users/JenChieh/AppData/Roaming/.emacs.d/elpa/co..." nil "(add-to-list 'load-path (directory-file-name\n     ...")
>   package-generate-autoloads(corfu "c:/Users/JenChieh/AppData/Roaming/.emacs.d/elpa/co...")
>   package--make-autoloads-and-stuff(#s(package-desc :name corfu :version (0 26) :summary "Completion Overlay Region FUnction" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/minad/corfu") (:maintainer "Daniel Mendler" . "[email-masked]") (:authors ("Daniel Mendler" . "[email-masked]")) (:commit . "c07b8c168765c350ef4693d1d8cd26be43894872")) :signed nil) "c:/Users/JenChieh/AppData/Roaming/.emacs.d/elpa/co...")
>   package-unpack(#s(package-desc :name corfu :version (0 26) :summary "Completion Overlay Region FUnction" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/minad/corfu") (:maintainer "Daniel Mendler" . "[email-masked]") (:authors ("Daniel Mendler" . "[email-masked]")) (:commit . "c07b8c168765c350ef4693d1d8cd26be43894872")) :signed nil))
>   #f(compiled-function () #<bytecode -0x35655f2cbb472bd>)()
>   package--with-response-buffer-1("https://elpa.gnu.org/packages/" #f(compiled-function () #<bytecode -0x35655f2cbb472bd>) :file "corfu-0.26.tar" :async nil :error-function #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_77> :noerror nil)
>   package-install-from-archive(#s(package-desc :name corfu :version (0 26) :summary "Completion Overlay Region FUnction" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/minad/corfu") (:maintainer "Daniel Mendler" . "[email-masked]") (:authors ("Daniel Mendler" . "[email-masked]")) (:commit . "c07b8c168765c350ef4693d1d8cd26be43894872")) :signed nil))
>   package-download-transaction((#s(package-desc :name corfu :version (0 26) :summary "Completion Overlay Region FUnction" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/minad/corfu") (:maintainer "Daniel Mendler" . "[email-masked]") (:authors ("Daniel Mendler" . "[email-masked]")) (:commit . "c07b8c168765c350ef4693d1d8cd26be43894872")) :signed nil)))
>   package-install(#s(package-desc :name corfu :version (0 26) :summary "Completion Overlay Region FUnction" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/minad/corfu") (:maintainer "Daniel Mendler" . "[email-masked]") (:authors ("Daniel Mendler" . "[email-masked]")) (:commit . "c07b8c168765c350ef4693d1d8cd26be43894872")) :signed nil) dont-select)
>   package-menu--perform-transaction((#s(package-desc :name corfu :version (0 26) :summary "Completion Overlay Region FUnction" :reqs ((emacs (27 1))) :kind tar :archive "gnu" :dir nil :extras ((:url . "https://github.com/minad/corfu") (:maintainer "Daniel Mendler" . "[email-masked]") (:authors ("Daniel Mendler" . "[email-masked]")) (:commit . "c07b8c168765c350ef4693d1d8cd26be43894872")) :signed nil)) nil)
>   package-menu-execute()
>   funcall-interactively(package-menu-execute)
>   command-execute(package-menu-execute)