use-package
use-package copied to clipboard
Can't install use-package to Emacs 27.1 (void-function: (lisp-data-mode)) on Rocky Linux
autoload-generate-file-autoloads: use-package-pkg.el:0:0: error: void-function: (lisp-data-mode)
Just try M-x package-install RET use-package
I am not a emacs expert, but leaving this for the next poor soul that runs into this.. I was able to work around this issue using this hack
(unless (or (fboundp 'lisp-data-mode)
(not enable-local-variables))
;; Work around the fact that transient's autogenerated package header declares mode:
;; lisp-data, which is only present in Emacs 28+, thus breaking the loading of deps
(message "Old Emacs version, remapping lisp-data-mode")
(defalias 'lisp-data-mode 'emacs-lisp-mode))
This sounds like either:
- https://bugs.gnu.org/76264 on GNU ELPA; or
- melpa/melpa#9193 on MELPA.
Both should be fixed, modulo waiting for affected packages to be rebuilt.
Either way, it doesn't look specific to use-package.
Is this still an issue? If so, please provide more details about your Emacs version, configured package archives, packages being installed, etc.